Details
Description
The database field {prefix}course.shortname is defined as char(100). The fieldsize for shortname in course/edit_form.php is limited to 15 characters.
course/edit_form.php, v. 1.25.2.2, line 72.
- $mform->addElement('text','shortname', get_string('shortname'),'maxlength="15" size="10"');
+ $mform->addElement('text','shortname', get_string('shortname'),'maxlength="100" size="10"');
Yes, I have been changing this each time I upgrade moodle! I vote for a 25 character length on the form! Remember, too, that the same fix should be applied to the course request form.