]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9389 - True / False penalty factor field redundant. Merged from MOODLE_18_STABLE.
authortjhunt <tjhunt>
Mon, 23 Apr 2007 16:23:17 +0000 (16:23 +0000)
committertjhunt <tjhunt>
Mon, 23 Apr 2007 16:23:17 +0000 (16:23 +0000)
question/type/truefalse/edit_truefalse_form.php

index 6267529f4e5e49bd39b4d41108cdfab771406bb5..1e13002268febdf5d820992732c8f0bc010ea137 100644 (file)
@@ -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) {