From: nicolasconnault Date: Fri, 7 Mar 2008 09:18:08 +0000 (+0000) Subject: MDL-12854 Added required rule for submission text. Merging from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=44d6ecc32b934edbc0be9e8efb3e4f6876248f6d;p=moodle.git MDL-12854 Added required rule for submission text. Merging from MOODLE_19_STABLE --- diff --git a/mod/assignment/type/online/assignment.class.php b/mod/assignment/type/online/assignment.class.php index 16cdbb351e..ed27cdeaf5 100644 --- a/mod/assignment/type/online/assignment.class.php +++ b/mod/assignment/type/online/assignment.class.php @@ -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')));