https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42587 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #7 from David Nind <david@davidnind.com> --- Hope I tested this correctly! Testing notes (using KTD): 1. Check some items out to different patrons so that items are overdue, and that they have different numbers of overdue items: - Click the "Checkout settings" icon where you enter in the barcode - Change the "Specify due date" to a date in the past - Mary Burton (23529000651225): - 39999000011418 - Lisa Charles (23529000197047): - 39999000000559 - 39999000006155 - Henry Acevedo (23529000035676): - 39999000006094 - 39999000006117 - 39999000000498 - Also add some normal non-overdue checkouts 2. After applying patches, run yarn build and a restart_all (not sure if this is required). 3. Used Bruno to test patch 3, step 3: - Set RESTdefaultPageSize system preference to "100" - GET 27.0.0.1:8081/api/v1/patrons Params: . Name: _order_by . Value: +me.overdues_count Headers: . Name: x-koha-embed . Value: overdues+count Auth: Basic Auth (inherited from Collection) ==> Result = the last 3 entries in response are ordered correctly: Mary Burton: "overdues_count": 1 Lisa Charles: "overdues_count": 2 Henry Acevedo: "overdues_count": 3 - Change _order_by value to -me.overdues_count ==> Results = the first 3 entries in response are ordered correctly: Henry Acevedo: "overdues_count": 3 Lisa Charles: "overdues_count": 2 Mary Burton: "overdues_count": 1 -- You are receiving this mail because: You are watching all bug changes.