From ff4a24f8175d33e80eda7501e0924d52aa8c8bce Mon Sep 17 00:00:00 2001 From: miker Date: Sun, 1 Feb 2009 21:35:44 +0000 Subject: [PATCH] keys is more efficient than map, since we already have the id list as the hash keys git-svn-id: svn://svn.open-ils.org/ILS/trunk@12039 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm index f694217c41..dc1814713b 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm @@ -45,7 +45,7 @@ sub create_events_for_object { my $orgs = $editor->json_query({ from => [ 'actor.org_unit_ancestors' => $location ] }); my $defs = $editor->search_action_trigger_event_definition([ - { hook => [ map { $_->id } @$hooks ], + { hook => [ keys %hook_hash ], owner => [ map { $_->{id} } @$orgs ], active => 't' }, -- 2.11.0