diff --git a/C4/Reserves.pm b/C4/Reserves.pm index ff35f37806..9054771338 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -842,7 +842,7 @@ Unsuspends all suspended reserves with a suspend_until date from before today. sub AutoUnsuspendReserves { my $today = dt_from_string(); - my @holds = Koha::Holds->search( { suspend_until => { '<' => $today->ymd() } } ); + my @holds = Koha::Holds->search( { suspend_until => { '<=' => $today->ymd() } } ); map { $_->suspend(0)->suspend_until(undef)->store() } @holds; }