Skip to content

Commit ce5fe97

Browse files
author
David Monllao
committed
Merge branch 'MDL-60789-33' of git://github.com/sarjona/moodle into MOODLE_33_STABLE
2 parents be05d8c + edd8201 commit ce5fe97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mod/workshop/submission_form.php

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function definition() {
4242
$mform->addElement('text', 'title', get_string('submissiontitle', 'workshop'));
4343
$mform->setType('title', PARAM_TEXT);
4444
$mform->addRule('title', null, 'required', null, 'client');
45+
$mform->addRule('title', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
4546

4647
$mform->addElement('editor', 'content_editor', get_string('submissioncontent', 'workshop'), null, $contentopts);
4748
$mform->setType('content', PARAM_RAW);

0 commit comments

Comments
 (0)