Browse files

Merge branch 'm22_MDL-34994' of git://github.com/danmarsden/moodle in…

…to MOODLE_22_STABLE
  • Loading branch information...
2 parents e5783fd + b33d969 commit 31970a66a85f44d999beb294a64739879fce22f5 @stronk7 stronk7 committed Aug 27, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/choice/backup/moodle2/restore_choice_stepslib.php
View
3 mod/choice/backup/moodle2/restore_choice_stepslib.php
@@ -80,10 +80,9 @@ protected function process_choice_answer($data) {
global $DB;
$data = (object)$data;
- $oldid = $data->id;
$data->choiceid = $this->get_new_parentid('choice');
- $data->optionid = $this->get_mappingid('choice_option', $oldid);
+ $data->optionid = $this->get_mappingid('choice_option', $data->optionid);
$data->userid = $this->get_mappingid('user', $data->userid);
$data->timemodified = $this->apply_date_offset($data->timemodified);

0 comments on commit 31970a6

Please sign in to comment.