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();