MDL-23796 backup - delete temp hack in choice, not needed because parser now handles...
authorEloy Lafuente <stronk7@moodle.org>
Tue, 24 Aug 2010 14:12:41 +0000 (14:12 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Tue, 24 Aug 2010 14:12:41 +0000 (14:12 +0000)
mod/choice/backup/moodle2/restore_choice_stepslib.php

index 9fa5dbe..bbfdcf4 100644 (file)
@@ -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();