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

Fix all persistent sortorder handling to prevent "holes"

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 2.9.2
    • Competencies
    • 2
    • CBE Sprint 2

      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.

            taboubii Issam Taboubi
            fred Frédéric Massart
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.