From: erickson Date: Fri, 29 Feb 2008 14:17:01 +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=99d9383f0975b42070b99add98ab506ca3ab52f7;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/branches/acq-experiment@8843 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 1cf6b3787b..c861f0d1da 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -596,7 +596,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"); }