[Bug 44043] New: Checking out item outside of an item group marks item group hold from the same bib as F (finished)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 Bug ID: 44043 Summary: Checking out item outside of an item group marks item group hold from the same bib as F (finished) Initiative type: --- Sponsorship --- status: Product: Koha Version: 26.05 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Hold requests Assignee: koha-bugs@lists.koha-community.org Reporter: sbrown@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, lisette@bywatersolutions.com, tomascohen@gmail.com Target Milestone: --- If a patron places a hold on an item group, and then checks out an item from the same bib outside of the item group on which they have the hold, Koha marks the hold on the item group as F (finished). To replicate: -Find/create a bib with an item group (ex: a manga title with two copies of each volume, where each volume is an item group) -Place a hold on an item group (ex: first available copy of vol. 3) -For the same patron, check out an item from a different item group (or no item group) on the same bib as the hold (ex: check out volume 2) -Note that the hold on the item group is no longer active, and shows in logs as F (finished) This was observed on 26.05.04 and 25.11.06. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |lisette@bywatersolutions.co |ity.org |m -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 --- Comment #1 from Lisette Scheer <lisette@bywatersolutions.com> --- Created attachment 211520 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211520&action=edit Bug 44043: Don't fill item group holds with items from outside the group When a patron checks out an item, MoveReserve looks for any hold the patron has on the same record. That lookup accepted any hold with item_level_hold = 0, which includes item group holds, so checking out an item from a different item group (or from no item group) filled the patron's item group hold and marked it F (finished). This patch limits the lookup to holds without an item group, or holds on the checked out item's own group, matching how CheckReserves treats item group holds. Test plan: 1. Enable EnableItemGroups and EnableItemGroupHolds 2. Create a record with two item groups (e.g. vol. 2 and vol. 3), each with an item, plus an item in no group 3. Place a hold for a patron on the vol. 3 item group 4. Check out the vol. 2 item to the same patron 5. Note the item group hold is gone and shows as finished 6. Apply the patch, restart_all 7. Repeat 3-4 (and with the ungrouped item): the hold remains 8. Check out the vol. 3 item: the hold is filled 9. prove t/db_dependent/Reserves.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211520|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 211586 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211586&action=edit Bug 44043: Don't fill item group holds with items from outside the group When a patron checks out an item, MoveReserve looks for any hold the patron has on the same record. That lookup accepted any hold with item_level_hold = 0, which includes item group holds, so checking out an item from a different item group (or from no item group) filled the patron's item group hold and marked it F (finished). This patch limits the lookup to holds without an item group, or holds on the checked out item's own group, matching how CheckReserves treats item group holds. Test plan: 1. Enable EnableItemGroups and EnableItemGroupHolds 2. Create a record with two item groups (e.g. vol. 2 and vol. 3), each with an item, plus an item in no group 3. Place a hold for a patron on the vol. 3 item group 4. Check out the vol. 2 item to the same patron 5. Note the item group hold is gone and shows as finished 6. Apply the patch, restart_all 7. Repeat 3-4 (and with the ungrouped item): the hold remains 8. Check out the vol. 3 item: the hold is filled 9. prove t/db_dependent/Reserves.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44043 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@openfifth.c |y.org |o.uk -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org