]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for MDL_9804, course shortname limited to 15 chars on forms
authortoyomoyo <toyomoyo>
Thu, 26 Jul 2007 02:30:18 +0000 (02:30 +0000)
committertoyomoyo <toyomoyo>
Thu, 26 Jul 2007 02:30:18 +0000 (02:30 +0000)
course/edit_form.php
course/request_form.php

index 93d700150863462a3025a5b0816b97078743f8ad..43ed3a74fb078d5549e1232dae3835ee0914f734 100644 (file)
@@ -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');
index 63daa7b48625a2295fbfa9457b4a4c3ad7f5b00b..3e2233c48f6984ffa5cda10ad6ec3127e03a9c1e 100644 (file)
@@ -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);