Skip to content

Commit

Permalink
MDL-38337 quiz: respect maximum grade config for new quizzes.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 8, 2013
1 parent 5c8860f commit 0e45118
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/quiz/mod_form.php
Expand Up @@ -388,6 +388,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();
}
Expand Down

0 comments on commit 0e45118

Please sign in to comment.