Fixes Bug 4978: longoverdues.pl claims undefined subroutine ModItem
authorIan Walls <ian.walls@bywatersolutions.com>
Thu, 8 Jul 2010 20:21:01 +0000 (16:21 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 8 Jul 2010 22:43:27 +0000 (18:43 -0400)
Adds an explicit C4::Items:: prefix to the ModItem call on line 323

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Accounts.pm

index ff2188b..610f0f4 100644 (file)
@@ -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;
 }