Merge branch 'MDL-60789-master' of git://github.com/sarjona/moodle

This commit is contained in:
David Monllao 2017-11-15 10:20:57 +01:00
commit 9304ba2212

View File

@ -42,6 +42,7 @@ class workshop_submission_form extends moodleform {
$mform->addElement('text', 'title', get_string('submissiontitle', 'workshop'));
$mform->setType('title', PARAM_TEXT);
$mform->addRule('title', null, 'required', null, 'client');
$mform->addRule('title', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$mform->addElement('editor', 'content_editor', get_string('submissioncontent', 'workshop'), null, $contentopts);
$mform->setType('content', PARAM_RAW);