From 685c088d243d2f4cdea18afe46b50afae8b3845b 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 Content-Type: text/plain; charset=utf-8 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 86582d8..9ddbb26 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.1.4