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

Fix all persistent sortorder handling to prevent "holes"

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Story Points:
      2
    • Sprint:
      CBE Sprint 2

      Description

      There are a few problems with the handling of sortorder in the models. Those points are all related to each other:

      1. New sortorders are created based on the number of rows in a table
      2. When an entry is deleted, the sortorder is left untouched perhaps causing holes
        • E.g. sortorders 1, 2, 3, 4 and 3 is deleted leads to 1, 2, 4
      3. Reordering is substracting/adding 1 to the sortorder, which is the problem when holes already exist.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                taboubii Issam Taboubi
                Reporter:
                fred Frédéric Massart
                Peer reviewer:
                Frédéric Massart
                Participants:
                Component watchers:
                Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: