[open-ils-commits] r8841 - branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 29 09:41:12 EST 2008


Author: erickson
Date: 2008-02-29 09:09:32 -0500 (Fri, 29 Feb 2008)
New Revision: 8841

Modified:
   branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
Log:
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

Modified: branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:08:25 UTC (rev 8840)
+++ branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:09:32 UTC (rev 8841)
@@ -596,7 +596,7 @@
 	$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");
 		}



More information about the open-ils-commits mailing list