mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-12854 Added required rule for submission text. Merging from MOODLE_19_STABLE
This commit is contained in:
parent
e369c8f688
commit
44d6ecc32b
@ -262,6 +262,7 @@ class mod_assignment_online_edit_form extends moodleform {
|
||||
$mform->addElement('htmleditor', 'text', get_string('submission', 'assignment'), array('cols'=>85, 'rows'=>30));
|
||||
$mform->setType('text', PARAM_RAW); // to be cleaned before display
|
||||
$mform->setHelpButton('text', array('reading', 'writing', 'richtext'), false, 'editorhelpbutton');
|
||||
$mform->addRule('text', get_string('required'), 'required', null, 'client');
|
||||
|
||||
$mform->addElement('format', 'format', get_string('format'));
|
||||
$mform->setHelpButton('format', array('textformat', get_string('helpformatting')));
|
||||
|
Loading…
x
Reference in New Issue
Block a user