Skip to content
Permalink
Browse files

MDL-60789 workshop: Check title submission maxlength

  • Loading branch information...
sarjona committed Nov 14, 2017
1 parent 0164f50 commit 3dbb8dc598879c242099102e66e054d54bf1834a
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/workshop/submission_form.php
@@ -42,6 +42,7 @@ function definition() {
$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);

0 comments on commit 3dbb8dc

Please sign in to comment.
You can’t perform that action at this time.