From fe76ab50067e498a2ac18b21bb0db236e9463f91 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 23 Apr 2007 16:23:17 +0000 Subject: [PATCH] MDL-9389 - True / False penalty factor field redundant. Merged from MOODLE_18_STABLE. --- question/type/truefalse/edit_truefalse_form.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/question/type/truefalse/edit_truefalse_form.php b/question/type/truefalse/edit_truefalse_form.php index 6267529f4e..1e13002268 100644 --- a/question/type/truefalse/edit_truefalse_form.php +++ b/question/type/truefalse/edit_truefalse_form.php @@ -28,6 +28,10 @@ class question_edit_truefalse_form extends question_edit_form { $mform->addElement('htmleditor', 'feedbackfalse', get_string('feedbackfalse', 'qtype_truefalse')); $mform->setType('feedbackfalse', PARAM_RAW); + + // Fix penalty factor at 1. + $mform->setDefault('penalty', 1); + $mform->freeze('penalty'); } function set_data($question) { -- 2.39.5