From bb4079498fd7bc84a5ee4296e78368fe70e8f2cd Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Tue, 5 Feb 2019 02:27:04 +1100 Subject: [PATCH] MDL-53140 core_question: Support localised floats when editing questions --- question/type/edit_question_form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/question/type/edit_question_form.php b/question/type/edit_question_form.php index 7b5fb9cde0f..735615a48d8 100644 --- a/question/type/edit_question_form.php +++ b/question/type/edit_question_form.php @@ -187,9 +187,8 @@ abstract class question_edit_form extends question_wizard_form { $mform->setType('questiontext', PARAM_RAW); $mform->addRule('questiontext', null, 'required', null, 'client'); - $mform->addElement('text', 'defaultmark', get_string('defaultmark', 'question'), + $mform->addElement('float', 'defaultmark', get_string('defaultmark', 'question'), array('size' => 7)); - $mform->setType('defaultmark', PARAM_FLOAT); $mform->setDefault('defaultmark', 1); $mform->addRule('defaultmark', null, 'required', null, 'client'); -- 2.43.0