From c43a555dbce3a50a752cdf397379766c46fb3555 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 1 Sep 2017 16:50:26 -0300 Subject: [PATCH] Bug 19059: Fix compilation issues Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- C4/Reserves.pm | 1 - circ/branchtransfers.pl | 4 ++-- t/db_dependent/Circulation.t | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 079fb398cc..39153bb1a8 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -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( { diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index bdb007f28d..c1d30cb55d 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -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 }); diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index 4ed1e78f77..34728d3f6f 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -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 -- 2.39.5