Skip to content

Commit

Permalink
MDL-55454 quiz: loses shufflequestion setting restoring old backups
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Aug 3, 2016
1 parent d1a3ea6 commit 0e9132e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/quiz/backup/moodle2/restore_quiz_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ protected function process_quiz($data) {
$data->overduehandling = get_config('quiz', 'overduehandling');
}

// Old shufflequestions setting is now stored in quiz sections,
// so save it here if necessary so it is available when we need it.
$this->legacyshufflequestionsoption = !empty($data->shufflequestions);

// Insert the quiz record.
$newitemid = $DB->insert_record('quiz', $data);
// Immediately after inserting "activity" record, call this.
Expand Down

0 comments on commit 0e9132e

Please sign in to comment.