LP#1306753: Only look at holds that expire before 'today'
authorMike Rylander <mrylander@gmail.com>
Fri, 11 Apr 2014 18:09:35 +0000 (14:09 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 10 Jul 2014 19:07:47 +0000 (15:07 -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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 794f2dd..0939086 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 },
         };
     }