Merge branch 'MDL-69401-39' of git://github.com/mihailges/moodle into MOODLE_39_STABLE

This commit is contained in:
Andrew Nicols
2020-08-20 07:03:36 +08:00
+3 -1
View File
@@ -55,9 +55,11 @@ class book_chapter_edit_form extends moodleform {
);
}
$mform->addElement('text', 'title', get_string('chaptertitle', 'mod_book'), array('size'=>'30'));
$mform->addElement('text', 'title', get_string('chaptertitle', 'mod_book'),
['size' => '30', 'maxlength' => '255']);
$mform->setType('title', PARAM_RAW);
$mform->addRule('title', null, 'required', null, 'client');
$mform->addRule('title', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
$mform->addElement('advcheckbox', 'subchapter', get_string('subchapter', 'mod_book'), $disabledmsg);