From 8971ddd5a9c6fbfaf9b7c9e9579ddcaa40ce1201 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 4 Apr 2013 11:59:35 +0800 Subject: [PATCH] MDL-38741 qtype_truefalse: fix missing setType call --- question/type/truefalse/edit_truefalse_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/type/truefalse/edit_truefalse_form.php b/question/type/truefalse/edit_truefalse_form.php index 9e6f930362f..3af90343faf 100644 --- a/question/type/truefalse/edit_truefalse_form.php +++ b/question/type/truefalse/edit_truefalse_form.php @@ -60,6 +60,7 @@ class qtype_truefalse_edit_form extends question_edit_form { get_string('settingsformultipletries', 'question')); $mform->addElement('hidden', 'penalty', 1); + $mform->setType('penalty', PARAM_FLOAT); $mform->addElement('static', 'penaltymessage', get_string('penaltyforeachincorrecttry', 'question'), 1);