From a45fe756660a3e1586fd52af2ec13d5d6a3f86a3 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 Signed-off-by: Owen Leonard --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 1f183e3290..ace025e0c4 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -265,7 +265,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.20.1