Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ionid
  • Loading branch information...
commit 2b062ed6a637aa5b753f080f2f40af0b150550cb 1 parent 7033316
@danmarsden danmarsden authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.