From: miker Date: Sun, 1 Feb 2009 21:35:44 +0000 (+0000) Subject: keys is more efficient than map, since we already have the id list as the hash keys X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ff4a24f8175d33e80eda7501e0924d52aa8c8bce;p=Evergreen.git 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 --- 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' },