Permalink
Browse files

MDL-38240 question forms: penalty should not be reqired.

It is a selecte menu, so you have to select a value, and anyway, 0 is a
valid value.

Once this is not a required field, the 'Multiple tries' section of the
form will collapse by default.
  • Loading branch information...
1 parent cce0d9a commit f7ce33c287153939747e067b324439880f52648e @timhunt timhunt committed Feb 27, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 question/type/edit_question_form.php
View
1 question/type/edit_question_form.php
@@ -430,7 +430,6 @@ protected function add_interactive_settings($withclearwrong = false,
}
$mform->addElement('select', 'penalty',
get_string('penaltyforeachincorrecttry', 'question'), $penaltyoptions);
- $mform->addRule('penalty', null, 'required', null, 'client');
$mform->addHelpButton('penalty', 'penaltyforeachincorrecttry', 'question');
$mform->setDefault('penalty', 0.3333333);

0 comments on commit f7ce33c

Please sign in to comment.