Bug 7160: paying fines throws error
authorIan Walls <ian.walls@bywatersolutions.com>
Sat, 5 Nov 2011 03:28:31 +0000 (23:28 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 14 Dec 2011 13:31:32 +0000 (14:31 +0100)
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@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Accounts.pm

index 860e187..e822b6a 100644 (file)
@@ -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'} );
     }
 }