From: erickson Date: Fri, 29 Feb 2008 14:16:22 +0000 (+0000) Subject: added check for always_xact since xact flag may not be set in authoritative mode X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dca6cc9d364dd2850720d458e9040105579a8bd0;p=Evergreen.git 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 --- 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"); }