[Koha-patches] [PATCH] Fixes Bug 4978: longoverdues.pl claims undefined subroutine ModItem

Ian Walls ian.walls at bywatersolutions.com
Thu Jul 8 22:21:01 CEST 2010


Adds an explicit C4::Items:: prefix to the ModItem call on line 323
---
 C4/Accounts.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Accounts.pm b/C4/Accounts.pm
index ff2188b..610f0f4 100644
--- a/C4/Accounts.pm
+++ b/C4/Accounts.pm
@@ -320,7 +320,7 @@ sub chargelostitem{
         warn " $issues->{'borrowernumber'}  /  $itemnumber ";
         C4::Circulation::MarkIssueReturned($issues->{borrowernumber},$itemnumber);
 	#  Shouldn't MarkIssueReturned do this?
-        ModItem({ onloan => undef }, undef, $itemnumber);
+        C4::Items::ModItem({ onloan => undef }, undef, $itemnumber);
     }
     $sth->finish;
 }
-- 
1.5.6.5



More information about the Koha-patches mailing list