From 41b330abe1fe56948d8a91073d3d25375caa6b4c Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 30 Jun 2015 10:26:18 +0800 Subject: [PATCH] MDL-50569 backup: Missing get_target call --- backup/moodle2/restore_stepslib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index ec060239149..c7b84466329 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -516,6 +516,7 @@ class restore_gradebook_structure_step extends restore_structure_step { $version28start = 2014111000.00; $version28last = 2014111006.05; + $target = $this->get_task()->get_target(); if ($minmaxtouse === false && ($target != backup::TARGET_CURRENT_ADDING && $target != backup::TARGET_EXISTING_ADDING)) { // The setting was not found because this setting did not exist at the time the backup was made.