Bug 15900 [QA Followup] - Use Koha::Patrons instead of Koha::Borrowers
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 6 Sep 2016 14:08:42 +0000 (14:08 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 27 Sep 2016 13:51:38 +0000 (13:51 +0000)
Since the initial submission of this patch, the module Koha::Borrowers
has been moved to Koha::Patrons. This patch changes the call from
Koha::Borrowers to Koha::Patrons.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm

index 470febc..e2c2ec5 100644 (file)
@@ -3836,7 +3836,7 @@ sub ProcessOfflineIssue {
 sub ProcessOfflinePayment {
     my $operation = shift;
 
-    my $patron = Koha::Borrowers->find( { cardnumber => $operation->{cardnumber} });
+    my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} });
     my $amount = $operation->{amount};
 
     Koha::Account->new( { patron_id => $patron->id } )->pay( { amount => $amount } );