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 <m.de.rooy@rijksmuseum.nl>
This commit is contained in:
Marcel de Rooy 2017-06-30 12:02:00 +02:00 committed by Jonathan Druart
parent 57ebe9aefc
commit adff45cd8d

View file

@ -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;
}