Staff client patron items out no longer sorts overdue to top

Bug #1478997 reported by Bill Erickson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned
2.7
Fix Released
Undecided
Unassigned
2.8
Fix Released
Undecided
Unassigned

Bug Description

Evergreen 2.8, goes back to 2.5.

Before the introduction of code from bug #1212456, the staff client sorted overdue items to the top of the items out display. This was done by inserting the list of overdues into the grid before the regular items out. (No date sorting, etc.).

The delightfully simple fix is to swap these two lines in items.js:

            obj.checkouts = obj.checkouts.concat(robj.out);
            obj.checkouts = obj.checkouts.concat(robj.overdue);

We could probably do more to improve the default sort (see bug #1125567), but in the meantime, I think it's sane to recover the previous behavior.

Note: this affects the browser client as well.

Patch for the XUL bits en route.

Revision history for this message
Bill Erickson (berick) wrote :
tags: added: pullrequest
Changed in evergreen:
milestone: none → 2.9-alpha
assignee: Bill Erickson (berick) → nobody
Revision history for this message
Bill Erickson (berick) wrote :
Changed in evergreen:
milestone: 2.9-alpha → 2.9-beta
Revision history for this message
Ben Shum (bshum) wrote :

Seems logical enough. Pushed the first change to master, with backports to rel_2_8 and rel_2_7. The second change was only pushed to master for the web staff client only.

Changed in evergreen:
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.