Update pickup lib from holds shelf status test repair
authorBill Erickson <berick@esilibrary.com>
Wed, 15 Feb 2012 22:07:24 +0000 (17:07 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 20 Feb 2012 19:28:48 +0000 (14:28 -0500)
When determining whether a hold is getting updated while already on the
holds shelf, it's important to also treat hold status 5 as an on-shelf
status.  Status 5 comes into play when the circ.hold_shelf_status_delay
org unit setting is activated and acts as a virtual status indicating
the item is physically en route to the shelf.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 6808522..9271c5d 100644 (file)
@@ -966,7 +966,7 @@ sub update_hold_impl {
             $transit->dest($hold->pickup_lib);
             $e->update_action_hold_transit_copy($transit) or return $e->die_event;
 
-        } elsif($hold_status == 4 or $hold_status == 8) { # on holds shelf
+        } elsif($hold_status == 4 or $hold_status == 5 or $hold_status == 8) { # on holds shelf
 
             return $e->die_event unless $e->allowed('UPDATE_PICKUP_LIB_FROM_HOLDS_SHELF', $orig_hold->pickup_lib);
             return $e->die_event unless $e->allowed('UPDATE_PICKUP_LIB_FROM_HOLDS_SHELF', $hold->pickup_lib);