From: erickson Date: Fri, 29 Feb 2008 14:08:25 +0000 (+0000) Subject: checking for xact instead of xact_id to verify session. at this point in the code... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4829fb3cafcc635a333d80a2121733449916ee7c;p=Evergreen.git checking for xact instead of xact_id to verify session. at this point in the code, if the editor has not had a reason to create a session yet, xact_id will be undef git-svn-id: svn://svn.open-ils.org/ILS/trunk@8840 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 88f6e095b6..167339ab49 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_id}) { + if(!$self->{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"); }