Bug 19059: Fix compilation issues
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Sep 2017 19:50:26 +0000 (16:50 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 12 Sep 2017 15:42:59 +0000 (12:42 -0300)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Reserves.pm
circ/branchtransfers.pl
t/db_dependent/Circulation.t

index 079fb39..39153bb 100644 (file)
@@ -799,7 +799,6 @@ sub CancelExpiredReserves {
     my $dbh = C4::Context->dbh;
 
     my $dtf = Koha::Database->new->schema->storage->datetime_parser;
-    my $today = dt_from_string;
     # FIXME To move to Koha::Holds->search_expired (?)
     my $holds = Koha::Holds->search(
         {
index bdb007f..c1d30cb 100755 (executable)
@@ -82,7 +82,7 @@ my $ignoreRs = 0;
 # Deal with the requests....
 if ( $request eq "KillWaiting" ) {
     my $item = $query->param('itemnumber');
-    my $holds = Koha::Holds->search(
+    my $holds = Koha::Holds->search({
         itemnumber     => $item,
         borrowernumber => $borrowernumber
     });
@@ -101,7 +101,7 @@ elsif ( $request eq "SetWaiting" ) {
 }
 elsif ( $request eq 'KillReserved' ) {
     my $biblionumber = $query->param('biblionumber');
-    my $holds = Koha::Holds->search(
+    my $holds = Koha::Holds->search({
         biblionumber   => $biblionumber,
         borrowernumber => $borrowernumber
     });
index 4ed1e78..34728d3 100755 (executable)
@@ -516,7 +516,7 @@ C4::Context->dbh->do("DELETE FROM accountlines");
     is( $renewokay, 0, '(Bug 8236), Cannot renew, this item is overdue');
 
 
-    my $hold = Koha::Holds->search({ biblionumber => $biblionumber, borrowernumber => $reserving_borrowernumber })->next;
+    $hold = Koha::Holds->search({ biblionumber => $biblionumber, borrowernumber => $reserving_borrowernumber })->next;
     $hold->cancel;
 
     # Bug 14101