From 05c979fc4153cc12884a6adf282a7603cbe7d0e0 Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Tue, 3 Dec 2013 13:14:48 +0100 Subject: [PATCH] Base.checkConsistency: s/error_list2/extra_error_list/ --- product/ERP5Type/Base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 5694d560f3..82a45bcd88 100644 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -2558,12 +2558,12 @@ class Base( CopyContainer, for constraint_instance in self._filteredConstraintList(filter): if fixit: - error_list2 = UnrestrictedMethod( + extra_error_list = UnrestrictedMethod( constraint_instance.fixConsistency)(self, **kw) else: - error_list2 = UnrestrictedMethod( + extra_error_list = UnrestrictedMethod( constraint_instance.checkConsistency)(self, **kw) - if len(error_list2) > 0: + if len(extra_error_list) > 0: try: if not fixit: extra_error_list = constraint_instance.checkConsistency(self, **kw) @@ -2572,7 +2572,7 @@ class Base( CopyContainer, except Unauthorized: error_list.append(getUnauthorizedErrorMessage(constraint_instance)) else: - error_list += error_list2 + error_list += extra_error_list if fixit and len(error_list) > 0: self.reindexObject() -- 2.30.9