From 82532d5e8eb89ebf12b11c6e38f0dc99ab47236b Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 29 Feb 2008 14:09:32 +0000 Subject: [PATCH] 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/branches/acq-experiment@8841 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 e2b32db417..1cf6b3787b 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_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"); } -- 2.11.0