Browse Source

Bug 20003: (QA follow-up) use patron checkouts method instead of Koha::Checkouts

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Nick Clemens 5 years ago
committed by Jonathan Druart
parent
commit
c1cb8a14bc
  1. 3
      circ/returns.pl

3
circ/returns.pl

@ -50,7 +50,6 @@ use Koha::AuthorisedValues;
use Koha::DateUtils;
use Koha::Calendar;
use Koha::BiblioFrameworks;
use Koha::Checkouts;
use Koha::Holds;
use Koha::Items;
use Koha::Patrons;
@ -596,7 +595,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) {
$ri{bortitle} = $patron->title;
$ri{bornote} = $patron->borrowernotes;
$ri{borcategorycode}= $patron->categorycode;
$ri{borissuescount} = Koha::Checkouts->count( { borrowernumber => $patron->borrowernumber } );
$ri{borissuescount} = $patron->checkouts->count;
}
else {
$ri{borrowernumber} = $riborrowernumber{$_};

Loading…
Cancel
Save