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

Incorrent course & role shortname truncate length

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.9
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      prefix_course.shortname was enlarged in 1.6 to varchar(100), but a few places in the code, forms and upgrade routines still limit the value to 15 characters (the length of the field in 1.5 and below), and something similar happens with prefix_role.shortname. In addition to that, prefix_course_request.shortname and prefix_mnet_enrol_course.shortname should be enlarged to the same value (varchar(100)) as they hold values that can go into/come from prefix_course.shortname.

      The attached patch fixes these issues for 1.8.4+ current as of today. I haven't done the same review to 1.9 or HEAD yet, so I don't know if all those issues are still present there.

      Saludos. Iñaki.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              iarenaza Iñaki Arenaza
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08