Skip to content

Commit

Permalink
MDL-49803 mod_quiz: Fixing overrides restore
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Apr 15, 2015
1 parent b6a76cd commit 2b51626
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mod/quiz/backup/moodle2/restore_quiz_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,13 @@ protected function process_quiz_override($data) {

$data->quiz = $this->get_new_parentid('quiz');

$data->userid = $this->get_mappingid('user', $data->userid);
$data->groupid = $this->get_mappingid('group', $data->groupid);
if ($data->userid !== null) {
$data->userid = $this->get_mappingid('user', $data->userid);
}

if ($data->groupid !== null) {
$data->groupid = $this->get_mappingid('group', $data->groupid);
}

$data->timeopen = $this->apply_date_offset($data->timeopen);
$data->timeclose = $this->apply_date_offset($data->timeclose);
Expand Down

0 comments on commit 2b51626

Please sign in to comment.