From f7ce33c287153939747e067b324439880f52648e Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 27 Feb 2013 17:36:13 +0000 Subject: [PATCH] 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. --- question/type/edit_question_form.php | 1 - 1 file changed, 1 deletion(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index e364c980f95..b7e78cc95bb 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -430,7 +430,6 @@ abstract class question_edit_form extends question_wizard_form { } $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);