From d9e09cd0c5f7928e7ad7b2ddad053b3ddcd2ee7a 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 We already have a patron objetc, no need to fetch --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index c3fd0ff6e2..741e6e8822 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -260,7 +260,6 @@ if ( $query->param('place_reserve') ) { my $patron_expiration_date = $query->param("expiration_date_$biblioNum"); my $rank = $biblioData->{rank}; - my $patron = Koha::Patrons->find( $borrowernumber ); if ( $item ) { $canreserve = 1 if CanItemBeReserved( $patron, $item, $branch )->{status} eq 'OK'; } -- 2.30.2