mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-55454 quiz: loses shufflequestion setting restoring old backups
This commit is contained in:
parent
d1a3ea62ef
commit
0e9132e56e
@ -239,6 +239,10 @@ class restore_quiz_activity_structure_step extends restore_questions_activity_st
|
||||
$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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user