From bb584d5053ca0f5b87722e461545fc3e42c8fc63 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Tue, 24 Aug 2010 14:12:41 +0000 Subject: [PATCH] MDL-23796 backup - delete temp hack in choice, not needed because parser now handles that ok --- mod/choice/backup/moodle2/restore_choice_stepslib.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mod/choice/backup/moodle2/restore_choice_stepslib.php b/mod/choice/backup/moodle2/restore_choice_stepslib.php index 9fa5dbe4216..bbfdcf4fba4 100644 --- a/mod/choice/backup/moodle2/restore_choice_stepslib.php +++ b/mod/choice/backup/moodle2/restore_choice_stepslib.php @@ -49,12 +49,6 @@ class restore_choice_activity_structure_step extends restore_activity_structure_ protected function process_choice($data) { global $DB; - // Check if there is an id property, if not the bail out! - if (empty($data->id)) { - // TODO MDL-23796 Remove this hack when there is a proper solution - return false; - } - $data = (object)$data; $oldid = $data->id; $data->course = $this->get_courseid();