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

brendan at bywatersolutions.com brendan at bywatersolutions.com
Sat Nov 5 08:19:39 CET 2011


From: Ian Walls <ian.walls at bywatersolutions.com>

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)

Signed-off-by: Brendan <brendan at bywatersolutions.com>
---
 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.2.5



More information about the Koha-patches mailing list