Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
$hold->cancel_cause(1); # un-targeted expiration. Do we need an alternate "target deleted" cause?
$editor->update_action_hold_request($hold) or return $editor->die_event;
- # delete the copy maps.
- my $maps = $editor->search_action_hold_copy_map({hold => $hold->id});
- for(@$maps) {
- $editor->delete_action_hold_copy_map($_)
- or return $editor->die_event;
- }
-
# tell A/T the hold was cancelled. Don't wait for a response..
my $at_ses = OpenSRF::AppSession->create('open-ils.trigger');
$at_ses->request(
$hold->cancel_cause(1); # un-targeted expiration.
$editor->update_action_hold_request($hold) or return $editor->die_event;
- my $maps = $editor->search_action_hold_copy_map({hold => $hold->id});
- for(@$maps) {
- $editor->delete_action_hold_copy_map($_)
- or return $editor->die_event;
- }
-
my $at_ses = OpenSRF::AppSession->create('open-ils.trigger');
$at_ses->request(
'open-ils.trigger.event.autocreate',