From 4ff17979ee65eac8314d3d26de44138ff27442b2 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 Rebased-by: Victor Grousset/tuxayo --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 24e5e22ae3..67060dd1b1 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.37.2