]> git.koha-community.org Git - koha.git/commit
Bug 30118: Make holds_block_checkin in SIP behave like in Koha interface.
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 17 Mar 2021 13:14:25 +0000 (14:14 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 15 Apr 2022 11:12:20 +0000 (07:12 -0400)
commit41abb100c3d3e5cf97473abf06337e49f9b44710
tree36e191b536f43c2fbf6f8320cea6716dd22c28ad
parent184d2099d2848a0d1c1178824630bfb9e06f63eb
Bug 30118: Make holds_block_checkin in SIP behave like in Koha interface.

In koha interface, a warning is displayed when an item on hold is returned
only if the return is for this specific item.

This patch does the same in SIP: the return is blocked when holds_block_checkin
is enabled and there is a hold on a specific item and this is the very item
being returned.

Test plan:

The following behavior is expected in SIP:

 - An item is returned, and there is a reservation on record-level: block
 - An item is returned, and there is a reservation on this very item: block
 - An item is returned, and there is a reservation on another item: allow

Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/SIP/ILS/Transaction/Checkin.pm