From e41cde66f011abdc1a7476ea6842ff04996975d2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 3 Jun 2022 07:32:35 +0200 Subject: [PATCH] Bug 31307: Remove 'already_reserved' flag from opac-reserve.pl It was never set (was set before 14695) Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- 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 8baba64243..a4cacfe50f 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.39.5