Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9804

course shortname truncated in course/edit_form.php

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.8.3, 1.9
    • 1.7.2
    • Course
    • None
    • MOODLE_17_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

    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"');

      Attachments

        Activity

          People

            lazyfish Yu Zhang
            bluenovember Clinton Graham
            Nobody Nobody
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.