From adff45cd8de804cf64f73ff3fec2fe0151a9e6b5 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 30 Jun 2017 12:02:00 +0200 Subject: [PATCH] Bug 17738: [QA Follow-up] Remove second find of same patron We can just use the $patron from line 77 here. Signed-off-by: Marcel de Rooy --- opac/opac-reserve.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 86582d86c7..9ddbb263b2 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -199,7 +199,6 @@ foreach my $biblioNumber (@biblionumbers) { if ( $query->param('place_reserve') ) { my $reserve_cnt = 0; if ($maxreserves) { - my $patron = Koha::Patrons->find( $borrowernumber ); $reserve_cnt = $patron->holds->count; } -- 2.39.5