Repair syntax on line 559 of Holds.pm
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 8 Nov 2012 16:32:06 +0000 (11:32 -0500)
committerBen Shum <bshum@biblio.org>
Mon, 26 Nov 2012 18:48:08 +0000 (13:48 -0500)
A change was introduced when listing available holds that has incorrect JSON
syntax. This caused available holds not to be returned by the query.

Changing '+ahr' to '=' in the query resolves this.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

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