Bug 5549 - Hourly Loans - Fixing a typo
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 16 Aug 2011 22:59:15 +0000 (10:59 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 00:29:14 +0000 (13:29 +1300)
C4/Circulation.pm

index 49bd7b2..a4c495d 100644 (file)
@@ -1735,7 +1735,7 @@ sub MarkIssueReturned {
     my $query = 'UPDATE issues SET returndate=';
     my @bind;
     if ($dropbox_branch) {
-        my $calendar = Koha->new( branchcode => $dropbox_branch );
+        my $calendar = Koha::Calendar->new( branchcode => $dropbox_branch );
         my $dropboxdate = $calendar->addDate( DateTime->now( time_zone => C4::Context->tz), -1 );
         $query .= ' ? ';
         push @bind, $dropboxdate->strftimei('%Y-%m-%d %H:%M');