From b1e53c10ec4c98579bb7b5fd2f1686adbf6e043b Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 11 Apr 2014 14:09:35 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, }; } -- 2.11.0