From 1b7969e798ef3ad73d3249e40b5f221d06f1f71f Mon Sep 17 00:00:00 2001 From: Ian Walls 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) --- 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