Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-33832

edu-services: prevent unique category naming error

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.4
    • Fix Version/s: 12.1, 19.0
    • Component/s: edu-services
    • Labels:
      None
    • 12 status:
      Resolved
    • 11 status:
      Please Merge
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Steps to reproduce:

      1. Remove a category; do not press 'Save' yet
      2. Add a new category, give it the exact same name as the one you just removed
      3. Click the 'Save' button
      4. Notice you get an error stating "Category names must be unique"

      If you were to have clicked 'Save' in between the delete and the add, it would work just fine. However, this is not intuitive to end users, and it may seem as though it's a bug in the system.

      This problem is half process/user error, half logic error; however we can make an improvement to avoid this, by reversing the logic in the back end method. Process the deletes first, then do the adds.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bjones86 Brian Jones
                Reporter:
                bjones86 Brian Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code