MDL-38337 quiz: respect maximum grade config for new quizzes.
This commit is contained in:
@@ -381,6 +381,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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user