event firing util code needs to run in a xact
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Sep 2010 05:31:03 +0000 (05:31 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Sep 2010 05:31:03 +0000 (05:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17913 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e648a8f..48e8ca5 100644 (file)
@@ -1598,7 +1598,7 @@ sub find_event_def_by_hook {
 sub fire_object_event {
     my($self, $event_def, $hook, $object, $context_org, $granularity, $user_data) = @_;
 
-    my $e = OpenILS::Utils::CStoreEditor->new;
+    my $e = OpenILS::Utils::CStoreEditor->new(xact => 1);
     my $def;
 
     my $auto_method = "open-ils.trigger.event.autocreate.by_definition";