Permalink
Browse files

MDL-38337 quiz: respect maximum grade config for new quizzes.

  • Loading branch information...
1 parent 1bfc006 commit 4300a0276536a466235f8d71724f801e05fabe9d @timhunt timhunt committed Mar 5, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/quiz/mod_form.php
View
4 mod/quiz/mod_form.php
@@ -381,6 +381,10 @@ protected function definition() {
// 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();
}

0 comments on commit 4300a02

Please sign in to comment.