[Patches] [PATCH] Bug 7160: paying fines throws error

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Sat Nov 5 20:25:03 NZDT 2011


From: Ian Walls <ian.walls at bywatersolutions.com>
Date: Fri, 4 Nov 2011 23:28:31 -0400
Subject: [PATCH] Bug 7160: paying fines throws error

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 Patches mailing list