From: toyomoyo Date: Thu, 26 Jul 2007 02:30:18 +0000 (+0000) Subject: merged fix for MDL_9804, course shortname limited to 15 chars on forms X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=787fb606a6f3e1ee86276be41044a030b395f574;p=moodle.git merged fix for MDL_9804, course shortname limited to 15 chars on forms --- diff --git a/course/edit_form.php b/course/edit_form.php index 93d7001508..43ed3a74fb 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -69,7 +69,7 @@ class course_edit_form extends moodleform { $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client'); $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->setDefault('shortname', get_string('defaultcourseshortname')); $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client'); diff --git a/course/request_form.php b/course/request_form.php index 63daa7b486..3e2233c48f 100644 --- a/course/request_form.php +++ b/course/request_form.php @@ -10,7 +10,7 @@ class course_request_form extends moodleform { $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client'); $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->setType('shortname', PARAM_TEXT);