MDL-53140 core_question: Support localised floats when editing questions

This commit is contained in:
Shamim Rezaie 2019-02-05 02:27:04 +11:00
parent e240a0000a
commit bb4079498f

View File

@ -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');