Bug 26408 - MoveReserve can fill the wrong hold when patron is not the first in line for an item
Summary: MoveReserve can fill the wrong hold when patron is not the first in line for ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Hold requests (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-08 15:54 UTC by Nick Clemens (kidclamp)
Modified: 2020-09-14 18:17 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2020-09-08 15:54:13 UTC
In MoveReserve we call ChecReserves - if the hold we get is not for the current patron we then check for the patron's holds on the biblio - not checking if they are item specific. We sort them by priority and fill the first.

To recreate:
1 - Place a title level hold on Book A for Patron A
2 - Place two item level holds on items A and B from Book A for Patron B
3 - Attempt to checkout ItemB to Patron B
4 - You get a notice of hold for Patron A
5 - Confirm the checkout anyway
6 - Patron B's hold for item A is filled?
7 - Patron B now has item B checked out and a hold on item B