Merge branch 'MDL-38337' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-03-12 00:25:05 +01:00
+4
View File
@@ -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();
}