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

Course Shortname is unique in interface and code but not in database schema

    Details

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

      Description

      If you attempt to create or edit a course so that the Course Shortname is the same as another course, the change is refused and it gives you a warning. Similarly backup and restore appears to modify the name of courses if the shortname is going to be a duplicate.

      However this constraint is not reflected in the database schema which has perfomance ramifications.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: