TPAC: Holds history paging is broken

Bug #1422927 reported by Bob Wicksall
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.8
Fix Released
Medium
Unassigned
3.9
Fix Released
Medium
Unassigned

Bug Description

Evergreen 2.7.3 (And probably older)

Holds history paging does not work. All holds are displayed regardless of paging. Tested with a history of 30+ holds.

It looks like paging was enhanced with this:

http://git.evergreen-ils.org/?p=Evergreen.git;a=commit;h=97221b394a50415d9ac52efb9304b5b96d0ae581

And then broken with this:

http://git.evergreen-ils.org/?p=Evergreen.git;a=commitdiff;h=a2a6225fdc1d0e389c7b39aeeca9229d71e5bbf8

Quote from above commit:

"The code in this commit moves the handling of the offset and limit to cases
where the input hold_ids is undefined, as this is, I think the intended
behavior. Typically when hold_ids is passed to the fetch_user_holds function
in EGCatLoader::Account, you want to retrieve those holds regardless of
the offset and limit values."

Changed in evergreen:
status: New → Confirmed
tags: added: holds opac
Revision history for this message
Terran McCanna (tmccanna) wrote :

Note that this is still broken in the Bootstrap OPAC (3.6.1) as well.

Changed in evergreen:
importance: Undecided → Medium
Dan Briem (dbriem)
tags: added: circ-holds
removed: holds
Revision history for this message
Terran McCanna (tmccanna) wrote :

Still an issue in 3.8.

Revision history for this message
Garry Collum (gcollum) wrote :
tags: added: pullrequest
Revision history for this message
Garry Collum (gcollum) wrote :

An easy way to test in concerto without placing holds on 15 or more items is to turn on holds history for a patron, place 3 or more holds, view the holds history, and then add ;limit=2;offset=0 to the end of the url to force pagination.

Revision history for this message
Terran McCanna (tmccanna) wrote :
tags: added: signedoff
Changed in evergreen:
milestone: none → 3.10-beta
Changed in evergreen:
milestone: 3.10-beta → 3.9.1
Changed in evergreen:
milestone: 3.9.1 → 3.9.2
Michele Morgan (mmorgan)
Changed in evergreen:
assignee: nobody → Michele Morgan (mmorgan)
Revision history for this message
Michele Morgan (mmorgan) wrote :

Works great to fix this long standing bug. Pushed to master, rel_3_10, rel_3_9 and rel_3_8.

Thanks Garry and Terran!

Changed in evergreen:
milestone: 3.9.2 → 3.10.1
status: Confirmed → Fix Committed
assignee: Michele Morgan (mmorgan) → nobody
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.