From 71cb493c6805385f2ab3b1ddf64561f58205679c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 Jan 2018 21:05:39 +0000 Subject: [PATCH] Bug 20003: (QA follow-up) use patron checkouts method instead of Koha::Checkouts Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- circ/returns.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index fab6bc22c9..247a71eab9 100755 --- a/circ/returns.pl +++ b/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{$_}; -- 2.39.5