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

"Short name is already used" error when short name is NOT already used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.3
    • None
    • Course
    • None
    • MOODLE_26_STABLE

    Description

      Modifying ONLY the lettercase of the course short name triggers the error "Short name is already used for another course" error – even when the short name is still unique.

      Steps to reproduce:

      • Create a course with a unique short name (e.g. "my test course")
      • Return to Course administration > Edit settings for that course, changing only the lettercase of the text in the field "Course short name" (e.g. to "MY test course")
      • Attempt to save the change.

      While I can appreciate that "my test course" is functionally the same as "MY test course" for the purposes of database comparison, this quirk is getting in the way of processing Pending course requests when, for example, faculty enter a short name of "Chem 1234" when our site standard is "CHEM 1234".

      The Save changes process appears to not notice that current course and the "another course" in the error message are in fact the same course.

      Work-around: Change the lettercase and add an extra character in the course short name field. Save changes. Re-edit to remove/delete the extra character. Save changes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hrynkiw Donna Hrynkiw
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: