LP1312824 open-ils.circ.hold.change_title fix collab/jboyer/LP1312824-change_title_capture_time
authorJason Boyer <JBoyer1@library.in.gov>
Fri, 25 Apr 2014 16:45:34 +0000 (12:45 -0400)
committerJason Boyer <JBoyer1@library.in.gov>
Fri, 25 Apr 2014 16:45:34 +0000 (12:45 -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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 9de0fca..6cc36a9 100644 (file)
@@ -3967,6 +3967,7 @@ sub change_hold_title {
     my $holds = $e->search_action_hold_request(
         [
             {
+               capture_time     => undef,
                 cancel_time      => undef,
                 fulfillment_time => undef,
                 hold_type        => 'T',
@@ -4003,6 +4004,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',