[Koha-patches] [PATCH] Bug 7160: paying fines throws error

Ian Walls ian.walls at bywatersolutions.com
Sat Nov 5 04:29:57 CET 2011


The call to ReturnLostItem in C4/Accounts was not properly namespaced to
come from C4::Circulation.  That prefix is added to the call.

To test:

Pay a fine, and confirm the error disappears (and the fines is still paid)
---
 C4/Accounts.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Accounts.pm b/C4/Accounts.pm
index 860e187..e822b6a 100644
--- a/C4/Accounts.pm
+++ b/C4/Accounts.pm
@@ -217,7 +217,7 @@ sub makepayment {
 
     #check to see what accounttype
     if ( $data->{'accounttype'} eq 'Rep' || $data->{'accounttype'} eq 'L' ) {
-        ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
+        C4::Circulation::ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
     }
 }
 
-- 
1.7.4



More information about the Koha-patches mailing list