mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'm23_MDL-34994' of git://github.com/danmarsden/moodle into MOODLE_23_STABLE
This commit is contained in:
commit
eec3a5d48d
1 changed files with 1 additions and 2 deletions
|
@ -80,10 +80,9 @@ class restore_choice_activity_structure_step extends restore_activity_structure_
|
|||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue