MDL-42540 quiz manual grading should have setType

This commit is contained in:
Tim Hunt
2013-11-11 14:17:10 +00:00
parent 89e6c5c0e9
commit fd85294415
@@ -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'));