LP1312824 open-ils.circ.hold.change_title fix
authorJason Boyer <JBoyer1@library.in.gov>
Fri, 25 Apr 2014 16:45:34 +0000 (12:45 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 19 May 2017 15:33:14 +0000 (11:33 -0400)
Add a capture_time => undef limit to both change_title
APIs to prevent currently captured holds from being reset
when moving holds from one title to another.
More work is needed to prevent items currently in transit
from having their transits canceled.

Signed-off-by: Jason Boyer <JBoyer1@library.in.gov>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 1825c71..87e1baf 100644 (file)
@@ -4037,6 +4037,7 @@ sub change_hold_title {
     my $holds = $e->search_action_hold_request(
         [
             {
+               capture_time     => undef,
                 cancel_time      => undef,
                 fulfillment_time => undef,
                 hold_type        => 'T',
@@ -4073,6 +4074,7 @@ sub change_hold_title_for_specific_holds {
     my $holds = $e->search_action_hold_request(
         [
             {
+               capture_time     => undef,
                 cancel_time      => undef,
                 fulfillment_time => undef,
                 hold_type        => 'T',