From 15a6cf9d968f1021c829982fe5172d25d1c60362 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 3 Jun 2022 07:32:35 +0200 Subject: [PATCH] Bug 27272: already_reserved never set (was set before 14695) --- opac/opac-reserve.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index cd71a6af293..2dfbed123a8 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -563,10 +563,9 @@ foreach my $biblioNum (@biblionumbers) { my $patron_unblessed = $patron->unblessed; my $branch = GetReservesControlBranch( $itemInfo, $patron_unblessed ); - my $policy_holdallowed = !$itemLoopIter->{already_reserved}; # items_any_available defined outside of the current loop, # so we avoiding loop inside IsAvailableForItemLevelRequest: - $policy_holdallowed &&= + my $policy_holdallowed = CanItemBeReserved( $patron, $item )->{status} eq 'OK' && IsAvailableForItemLevelRequest($item, $patron, undef, $items_any_available); -- 2.25.1