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=b1e53c10ec4c98579bb7b5fd2f1686adbf6e043b;p=evergreen%2Fpines.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 Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- 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 794f2dd1b3..093908665c 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 }, }; }