From abe3117368e8a8b7b5a42eb645e539743f74cb01 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 25 May 2022 14:19:32 +0000 Subject: [PATCH] Bug 30847: Don't fetch patron twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Owen Leonard Rebased-by: Victor Grousset/tuxayo Signed-off-by: Joonas Kylmälä Signed-off-by: Tomas Cohen Arazi --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 90ac74a1c3..df0582df54 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -262,7 +262,6 @@ if ( $query->param('place_reserve') ) { $itemtype = undef if $itemNum; my $rank = $biblioData->{rank}; - my $patron = Koha::Patrons->find( $borrowernumber ); if ( $item ) { $canreserve = 1 if CanItemBeReserved( $patron, $item, $branch )->{status} eq 'OK'; } -- 2.39.5