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

course shortname truncated in course/edit_form.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.2
    • 1.8.3, 1.9
    • 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
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07