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

This commit is contained in:
Marina Glancy 2013-11-12 14:47:54 +11:00
commit c7ef597040

View file

@ -90,6 +90,11 @@ class quiz_grading_settings_form extends moodleform {
foreach ($this->hidden as $name => $value) {
$mform->addElement('hidden', $name, $value);
if ($name == 'mode') {
$mform->setType($name, PARAM_ALPHA);
} else {
$mform->setType($name, PARAM_INT);
}
}
$mform->addElement('submit', 'submitbutton', get_string('changeoptions', 'quiz_grading'));