[open-ils-commits] r8840 - trunk/Open-ILS/src/perlmods/OpenILS/Utils

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 29 09:40:07 EST 2008


Author: erickson
Date: 2008-02-29 09:08:25 -0500 (Fri, 29 Feb 2008)
New Revision: 8840

Modified:
   trunk/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: trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-28 00:37:59 UTC (rev 8839)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:08:25 UTC (rev 8840)
@@ -543,7 +543,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