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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2018-01-26 21:05:39 +00:00 committed by Jonathan Druart
parent ccea385ce7
commit c1cb8a14bc
1 changed files with 1 additions and 2 deletions

View File

@ -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{$_};