diff --git a/mod/workshop/submission_form.php b/mod/workshop/submission_form.php index f6c827094ea..6a624fbb1e4 100644 --- a/mod/workshop/submission_form.php +++ b/mod/workshop/submission_form.php @@ -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);