From dca6cc9d364dd2850720d458e9040105579a8bd0 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 29 Feb 2008 14:16:22 +0000 Subject: [PATCH] added check for always_xact since xact flag may not be set in authoritative mode git-svn-id: svn://svn.open-ils.org/ILS/trunk@8842 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 167339ab49..8c7b33824a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -543,7 +543,7 @@ sub runmethod { $self->clear_event; if( $action eq 'update' or $action eq 'delete' or $action eq 'create' ) { - if(!$self->{xact}) { + if(!($self->{xact} or $always_xact)) { $logger->error("Attempt to update DB while not in a transaction : $method"); throw OpenSRF::EX::ERROR ("Attempt to update DB while not in a transaction : $method"); } -- 2.43.2