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

course shortname truncated in course/edit_form.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      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

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            bluenovember Clinton Graham
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07