LP#1306753: Only look at holds that expire before 'today' user/miker/expired-holds-ignore-today
authorMike Rylander <mrylander@gmail.com>
Fri, 11 Apr 2014 18:09:35 +0000 (14:09 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 11 Apr 2014 18:09:35 +0000 (14:09 -0400)
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 <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 45b2133..35b73ca 100644 (file)
@@ -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 },
         };
     }