Bug 30935: Holds to pull shows wrong first patron
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Wed, 29 Jun 2022 15:13:27 +0000 (11:13 -0400)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 26 Aug 2022 13:11:36 +0000 (15:11 +0200)
commit6bd8547c92e74bc1a5632a07175cf7c0b2c60205
tree8aeaabb1288839df42190a0f588a1e4f5334273b
parentb2b132b9afc65aef05196214c0ab45be0c55c364
Bug 30935: Holds to pull shows wrong first patron

When different patrons have item level holds on the same item, Holds to
pull shows wrong first patron.

Test plan:
1) Place a record-level hold on a biblio with an available item
2) Check the Holds to pull page (circ/pendingreserves.pl)
--> The biblio should appear in the list and the patron should appear in the 'First patron' column
3) Place a second record-level hold on the same biblio
4) Go back to the Holds to pull page
--> The biblio is still there, but the patron in the 'First patron' column is the second patron
5) Place a third record-level hold on the same biblio
6) Go back to the Holds to pull page
--> The biblio is still there, but the patron in the 'First patron' column is the third patron
7) Apply the patch
8) Go back to the Holds to pull page
--> The biblio is still there and the patron in the 'First patron' column is the first patron

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 87b985528edf0a714121fed13d2390fd57a27a36)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c1cc0c07371f695646468862812fb82674480345)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
circ/pendingreserves.pl