Clear hold shelf/shelf_expire time for pickup lib change user/berick/hold-clear-shelf-time-pickup-lib-change
authorBill Erickson <berick@esilibrary.com>
Tue, 13 Dec 2011 19:32:45 +0000 (14:32 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 13 Dec 2011 19:32:45 +0000 (14:32 -0500)
commit858a0b44ac54e5ce497177a5498e8b61f8d84e73
tree01f2d07ad0a9aa55c6701cb3fcce93eec4d23ea7
parent6349068fe22ff9431fca5ad9f1adadd6a5d0aea6
Clear hold shelf/shelf_expire time for pickup lib change

If a hold is on the holds shelf and the pickup library changes, clear
the shelf_time and shelf_expire_time, since the hold is now in transit.

This is particularly important for avoiding action_trigger events for
the "hold_request.shelf_expires_soon" hook for what is now an
in-transit item.

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