if an explicit event-def-id is provided, assume that's what the caller really wants...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 May 2009 16:42:01 +0000 (16:42 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 26 May 2009 16:42:01 +0000 (16:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13232 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index f76c72c..a76fe96 100644 (file)
@@ -1479,10 +1479,14 @@ sub fire_object_event {
     my $e = OpenILS::Utils::CStoreEditor->new;
     my $def;
 
+    my $auto_method = "open-ils.trigger.event.autocreate.by_definition";
+
     if($event_def) {
         $def = $e->retrieve_action_trigger_event_definition($event_def)
             or return $e->event;
 
+        $auto_method .= '.include_inactive';
+
     } else {
         # find the most appropriate event def depending on context org
         my $orgs = $self->get_org_ancestors($context_org);
@@ -1501,9 +1505,7 @@ sub fire_object_event {
     }
 
     my $event_id = $self->simplereq(
-        'open-ils.trigger',
-        'open-ils.trigger.event.autocreate.by_definition', 
-        $def->id, $object, $context_org);
+        'open-ils.trigger', $auto_method, $def->id, $object, $context_org);
 
     my $fire = 'open-ils.trigger.event.fire';