From 433e4e8a7a937951eec8532e349f693701831d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Tue, 25 Sep 2018 13:32:17 +0000 Subject: [PATCH 2/2] Bug 21373: allow checkout if other availabe items can satisfy hold To test: 1. Have biblio record with two items and make one biblio level hold for it 2. Notice that without this patch checking out an item to patron is not possible, and with this patch applied it is possible. --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index ad95ea5..22dcd7e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -980,7 +980,7 @@ sub CanBookBeIssued { } } - unless ( $ignore_reserves ) { + unless ( $ignore_reserves || IsItemAvailableForCheckout($item->{itemnumber}) ) { # See if the item is on reserve. my ( $restype, $res ) = C4::Reserves::CheckReserves( $item->{'itemnumber'} ); if ($restype) { -- 2.7.4