mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
merged fix for MDL_9804, course shortname limited to 15 chars on forms
This commit is contained in:
parent
f10fac9669
commit
787fb606a6
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class course_edit_form extends moodleform {
|
||||||
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
||||||
$mform->setType('fullname', PARAM_MULTILANG);
|
$mform->setType('fullname', PARAM_MULTILANG);
|
||||||
|
|
||||||
$mform->addElement('text','shortname', get_string('shortname'),'maxlength="15" size="10"');
|
$mform->addElement('text','shortname', get_string('shortname'),'maxlength="100" size="10"');
|
||||||
$mform->setHelpButton('shortname', array('courseshortname', get_string('shortname')), true);
|
$mform->setHelpButton('shortname', array('courseshortname', get_string('shortname')), true);
|
||||||
$mform->setDefault('shortname', get_string('defaultcourseshortname'));
|
$mform->setDefault('shortname', get_string('defaultcourseshortname'));
|
||||||
$mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
|
$mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
|
||||||
|
|
|
@ -10,7 +10,7 @@ class course_request_form extends moodleform {
|
||||||
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
||||||
$mform->setType('fullname', PARAM_TEXT);
|
$mform->setType('fullname', PARAM_TEXT);
|
||||||
|
|
||||||
$mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="15" size="10"');
|
$mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="100" size="10"');
|
||||||
$mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
|
$mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client');
|
||||||
$mform->setType('shortname', PARAM_TEXT);
|
$mform->setType('shortname', PARAM_TEXT);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue