From 0df2981f321eeb0fb2f7836dae1239737c6f0b89 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Thu, 16 Sep 2010 09:39:22 +0000 Subject: [PATCH] backup MDL-23362 commented out annotation of old/new ids for grade_grades and grade_settings as I dont think theyre required --- backup/moodle2/restore_stepslib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/moodle2/restore_stepslib.php b/backup/moodle2/restore_stepslib.php index 0c5c45dca42..7875273421d 100644 --- a/backup/moodle2/restore_stepslib.php +++ b/backup/moodle2/restore_stepslib.php @@ -217,7 +217,7 @@ class restore_gradebook_structure_step extends restore_structure_step { $data->timemodified = $this->apply_date_offset($data->timemodified); $newitemid = $DB->insert_record('grade_grades', $data); - $this->set_mapping('grade_grade', $oldid, $newitemid); + //$this->set_mapping('grade_grade', $oldid, $newitemid); } protected function process_grade_category($data) { global $DB; @@ -274,7 +274,7 @@ class restore_gradebook_structure_step extends restore_structure_step { $data->courseid = $this->get_courseid(); $newitemid = $DB->insert_record('grade_settings', $data); - $this->set_mapping('grade_setting', $oldid, $newitemid); + //$this->set_mapping('grade_setting', $oldid, $newitemid); } //put all activity grade items in the correct grade category and mark all for recalculation