mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-38337 quiz: respect maximum grade config for new quizzes.
This commit is contained in:
parent
8673a98d1d
commit
f9e5471273
@ -388,6 +388,10 @@ class mod_quiz_mod_form extends moodleform_mod {
|
||||
// Check and act on whether setting outcomes is considered an advanced setting.
|
||||
$mform->setAdvanced('modoutcomes', !empty($quizconfig->outcomes_adv));
|
||||
|
||||
// The standard_coursemodule_elements method sets this to 100, but the
|
||||
// quiz has its own setting, so use that.
|
||||
$mform->setDefault('grade', $quizconfig->maximumgrade);
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
$this->add_action_buttons();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user