Permalink
Browse files

Merge branch 'MDL-42540_24' of git://github.com/timhunt/moodle into M…

…OODLE_24_STABLE
  • Loading branch information...
2 parents e87d98d + 50e9f0e commit 32ef8734a9d1a14ee9006af0df26f511ccbdadd6 @marinaglancy marinaglancy committed Nov 12, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/quiz/report/grading/gradingsettings_form.php
@@ -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'));

0 comments on commit 32ef873

Please sign in to comment.