LP#1172893: fix query for retrieving available holds
authorBill Erickson <berick@esilibrary.com>
Thu, 25 Apr 2013 15:54:40 +0000 (11:54 -0400)
committerBen Shum <bshum@biblio.org>
Sat, 27 Apr 2013 03:22:29 +0000 (23:22 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index fc43e1d..cde9619 100644 (file)
@@ -570,7 +570,7 @@ sub retrieve_holds {
         if($available) {
             $holds_query->{where}->{shelf_time} = {'!=' => undef};
             # Maybe?
-            $holds_query->{where}->{pickup_lib} = {'=' => 'current_shelf_lib'};
+            $holds_query->{where}->{pickup_lib} = {'=' => {'+ahr' => 'current_shelf_lib'}};
         }
     }