From: miker Date: Sun, 1 Feb 2009 21:34:34 +0000 (+0000) Subject: need the full hook, not just idlist X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=77953c24a5a97ec5ab60482fe37b41ed1735267b;p=evergreen%2Ftadl.git need the full hook, not just idlist git-svn-id: svn://svn.open-ils.org/ILS/trunk@12038 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm index 04d8dd3f9e..f694217c41 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm @@ -35,19 +35,18 @@ sub create_events_for_object { my $editor = new_editor(xact=>1); - my $hooks = $editor->search_action_trigger_hook([ + my $hooks = $editor->search_action_trigger_hook( { key => $key, core_type => $target->json_hint - }, - { idlist => 1 } - ]); + } + ); my %hook_hash = map { ($_->id, $_) } @$hooks; my $orgs = $editor->json_query({ from => [ 'actor.org_unit_ancestors' => $location ] }); my $defs = $editor->search_action_trigger_event_definition([ - { hook => $hooks, - owner => [ map { $_->{id} } @$orgs ], + { hook => [ map { $_->id } @$hooks ], + owner => [ map { $_->{id} } @$orgs ], active => 't' }, { idlist => 1 }