From 178a914acd80a80fa37f03962d9a052a2d278d33 Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Tue, 9 Jun 2020 09:24:19 -0400 Subject: [PATCH] MDL-68986 quiz: Add back default/adv for questionsperpage setting --- mod/quiz/mod_form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index f9f7b283f1b..daad6b9075a 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -144,6 +144,7 @@ class mod_quiz_mod_form extends moodleform_mod { $pagegroup = array(); $pagegroup[] = $mform->createElement('select', 'questionsperpage', get_string('newpage', 'quiz'), quiz_questions_per_page_options(), array('id' => 'id_questionsperpage')); + $mform->setDefault('questionsperpage', $quizconfig->questionsperpage); if (!empty($this->_cm)) { $pagegroup[] = $mform->createElement('checkbox', 'repaginatenow', '', @@ -153,6 +154,7 @@ class mod_quiz_mod_form extends moodleform_mod { $mform->addGroup($pagegroup, 'questionsperpagegrp', get_string('newpage', 'quiz'), null, false); $mform->addHelpButton('questionsperpagegrp', 'newpage', 'quiz'); + $mform->setAdvanced('questionsperpagegrp', $quizconfig->questionsperpage_adv); // Navigation method. $mform->addElement('select', 'navmethod', get_string('navmethod', 'quiz'),