mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-53140 core_question: Support localised floats when editing questions
This commit is contained in:
parent
e240a0000a
commit
bb4079498f
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user