[Koha-patches] [PATCH] bug 2006: do not crash when paying a lost item fine

Galen Charlton galen.charlton at liblime.com
Thu Apr 10 16:12:44 CEST 2008


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.
---
 C4/Accounts.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Accounts.pm b/C4/Accounts.pm
index f173225..3a648e4 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];
-- 
1.5.5.rc0.16.g02b00




More information about the Koha-patches mailing list