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@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Ian Walls 2011-11-04 23:28:31 -04:00 committed by Paul Poulain
parent 04f8dfec9b
commit afd2098f3c

View 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'} );
}
}