diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index 3f5546278f303..d13b52b0223f2 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -134,6 +134,7 @@ function definition() { $mform->addElement('select', 'decimalpoints', get_string("decimaldigits", "quiz"), $options); $mform->setHelpButton('decimalpoints', array("decimalpoints", get_string("decimaldigits","quiz"), "quiz")); $mform->setAdvanced('decimalpoints', $CFG->quiz_fix_decimalpoints); + $mform->setDefault('decimalpoints', $CFG->quiz_decimalpoints); $mform->addElement('hidden', 'grade', $CFG->quiz_maximumgrade);