Skip to content

Commit

Permalink
MDL-42540 quiz manual grading should have setType
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 7, 2013
1 parent d214057 commit a289a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod/quiz/report/grading/gradingsettings_form.php
Expand Up @@ -90,6 +90,11 @@ protected function definition() {

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'));
Expand Down

0 comments on commit a289a2b

Please sign in to comment.