From: Mike Rylander Date: Fri, 11 Apr 2014 18:09:35 +0000 (-0400) Subject: LP#1306753: Only look at holds that expire before 'today' X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=06a5edbe25b7bd5eb6cb57c504c061dd29b5053e;p=working%2FEvergreen.git LP#1306753: Only look at holds that expire before 'today' We should not count today when generating the hold expiration list. So, we'll look for holds that expire before 'today' instead of those that expire before 'now'. Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm index 45b213346f..35b73ca0e2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm @@ -2148,7 +2148,7 @@ sub fetch_captured_holds { }; if($self->api_name =~ /expired/) { $query->{'where'}->{'+alhr'}->{'-or'} = { - shelf_expire_time => { '<' => 'now'}, + shelf_expire_time => { '<' => 'today'}, cancel_time => { '!=' => undef }, }; }