Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-7582

Regression: sorting the document listing in unordered folders is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.26.00
    • Fix Version/s: 2.26.00-alpha-1, 2.26.00
    • Component/s: None
    • Labels:
    • Similar issues:
    • Sprint:
      Sprint 69

      Description

      Clicking on a header to sort the column works only the first time and doesn't update the header visually. The column data is updated correctly, but likewise only for the first click.

      This is due to the AjaxFallbackHeadersToolbar calling newSortableHeader() after every click on the toolbar since Wicket6. This call creates a new object ListTableHeader which sets an initial ascending sort order on the first name column it finds and hence fixes the sorting to name-ascending for all non-orderable folders.

      Reproduction path:

      • Start up the test-suite
      • Navigate to folder demosite/common
      • Click on a table header to change the sorting

      Expected: table is sorted by the column we clicked on, where direction changes state in the following order: natural-order, ascending, descending. This state is also reflected by the column header.
      Actual: Table is sorted ascending by name, no matter what.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsheriff Junaidh Kadhar Sheriff
                Reporter:
                abogaart Arthur Bogaart
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: