Permalink
Browse files

MDL-34994 mod_choice: fix restore of user responses - use correct opt…

…ionid
  • Loading branch information...
1 parent c92d6f4 commit f518ff588da27e0dada1b3360d65c737913adfb4 @danmarsden danmarsden committed Aug 21, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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 f518ff5

Please sign in to comment.