From 2361831280ce01b20c63f909d65571ecfae759bc Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 25 Aug 2011 14:20:56 -0400 Subject: [PATCH] Clear hold shelf [expire] time at checkout to alternate patron 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 Signed-off-by: Jason Etheridge --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index 4b64e27899..3bd0638be6 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -1637,6 +1637,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); -- 2.11.0