Skip to content

Commit

Permalink
Merge branch 'MDL-60789-master' of git://github.com/sarjona/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Nov 15, 2017
2 parents a571aa9 + 3dbb8dc commit 9304ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/workshop/submission_form.php
Expand Up @@ -42,6 +42,7 @@ function definition() {
$mform->addElement('text', 'title', get_string('submissiontitle', 'workshop')); $mform->addElement('text', 'title', get_string('submissiontitle', 'workshop'));
$mform->setType('title', PARAM_TEXT); $mform->setType('title', PARAM_TEXT);
$mform->addRule('title', null, 'required', null, 'client'); $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->addElement('editor', 'content_editor', get_string('submissioncontent', 'workshop'), null, $contentopts);
$mform->setType('content', PARAM_RAW); $mform->setType('content', PARAM_RAW);
Expand Down

0 comments on commit 9304ba2

Please sign in to comment.