[Patches] [PATCH] Bug 7370: longoverdue.pl cronjob fails, undefined subroutine LostItem

koha-patchbot at kohaaloha.com koha-patchbot at kohaaloha.com
Thu Dec 22 08:00:03 NZDT 2011


From: Ian Walls <ian.walls at bywatersolutions.com>
Date: Wed, 21 Dec 2011 13:54:01 -0500
Subject: [PATCH] Bug 7370:  longoverdue.pl cronjob fails, undefined subroutine LostItem

misc/cronjobs/longoverdue.pl didn't get a fully qualified subroutine for
LostItem.  Adds the necessary "C4::Circulation::" prefix
---
 misc/cronjobs/longoverdue.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl
index e3648d5..adde158 100755
--- a/misc/cronjobs/longoverdue.pl
+++ b/misc/cronjobs/longoverdue.pl
@@ -160,7 +160,7 @@ foreach my $startrange (sort keys %$lost) {
             printf ("Due %s: item %5s from borrower %5s to lost: %s\n", $row->{date_due}, $row->{itemnumber}, $row->{borrowernumber}, $lostvalue) if($verbose);
             if($confirm) {
                 ModItem({ itemlost => $lostvalue }, $row->{'biblionumber'}, $row->{'itemnumber'});
-                LostItem($row->{'itemnumber'}, undef, 'CHARGE FEE') if( $charge && $charge eq $lostvalue);
+                C4::Circulation::LostItem($row->{'itemnumber'}, undef, 'CHARGE FEE') if( $charge && $charge eq $lostvalue);
             }
             $count++;
         }
-- 
1.7.4.1




More information about the Patches mailing list