[Koha-bugs] [Bug 28764] New: Sorting not correct in pagination on OPAC lists

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 27 13:23:49 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28764

            Bug ID: 28764
           Summary: Sorting not correct in pagination on OPAC lists
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

When viewing a list on the OPAC you can force a sorting direction by appending
to the sortfield with a colon:
sortfield=dateadded:desc

When clicking on the next page, however, the direction is formed as:
direction=desc&sortfield=dateadded

The script doesn't read the 'direction' parameter, so sorting fails

To recreate:
1 - Create a public list
2 - Add enough items to generate two pages (40 worked for me)
3 - View the list and enforce sorting by date added descending:
    sortfield=dateadded:desc
4 - Note the titles shown
5 - Click to second page using the pagination bar
6 - Note the same titles are shown, in a reversed order

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list