Clear hold shelf [expire] time at checkout to alternate patron
authorBill Erickson <berick@esilibrary.com>
Thu, 25 Aug 2011 18:20:56 +0000 (14:20 -0400)
committerJason Etheridge <jason@esilibrary.com>
Tue, 20 Sep 2011 13:55:18 +0000 (09:55 -0400)
When an item on the holds shelf is checked out to an alternate patron
(i.e. not the hold user), clear the shelf_time and shelf_expire_time
along with capture_time, current_copy, etc. on the hold.

tsbere++ for isolating the problem.

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

index 270f7aa..6cefcd1 100644 (file)
@@ -1652,6 +1652,8 @@ sub handle_checkout_holds {
         $hold->clear_prev_check_time; 
         $hold->clear_current_copy;
         $hold->clear_capture_time;
+        $hold->clear_shelf_time;
+        $hold->clear_shelf_expire_time;
 
         return $self->bail_on_event($e->event)
             unless $e->update_action_hold_request($hold);