From 90290c455129af91bdb30067b33e198eb0cdd435 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 10 Apr 2008 09:12:44 -0500 Subject: [PATCH] bug 2006: do not crash when paying a lost item fine Qualified call to MarkIssueReturned with 'C4::Circulation'. It looks like there is still a subtle bug with exporting subs between modules that use each other. Signed-off-by: Joshua Ferraro --- C4/Accounts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Accounts.pm b/C4/Accounts.pm index f173225f41..3a648e4660 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -268,7 +268,7 @@ EOT sub returnlost { my ( $borrowernumber, $itemnum ) = @_; - MarkIssueReturned( $borrowernumber, $itemnum ); + C4::Circulation::MarkIssueReturned( $borrowernumber, $itemnum ); my $borrower = C4::Members::GetMember( $borrowernumber, 'borrowernumber' ); my @datearr = localtime(time); my $date = ( 1900 + $datearr[5] ) . "-" . ( $datearr[4] + 1 ) . "-" . $datearr[3]; -- 2.39.5