From fac87819fe2b7a90dbe635e137de24db9d150dfe Mon Sep 17 00:00:00 2001
From: Wenjie Zheng <wenjie.zheng@tiolive.com>
Date: Sun, 22 Mar 2015 02:30:22 +0000
Subject: [PATCH] Transition.py: remove old variable update part.

---
 product/ERP5Workflow/Document/Transition.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/product/ERP5Workflow/Document/Transition.py b/product/ERP5Workflow/Document/Transition.py
index b24ed2b0fc..2fbce6d0d7 100644
--- a/product/ERP5Workflow/Document/Transition.py
+++ b/product/ERP5Workflow/Document/Transition.py
@@ -268,19 +268,6 @@ class Transition(XMLObject):
     for variable in self.contentValues(portal_type='Transition Variable'):
       status_dict[variable.getCausalityTitle()] = variable.getInitialValue(object=object)
 
-    """
-    # Update all variables
-    for variable in workflow.contentValues(portal_type='Variable'):
-      if variable.getAutomaticUpdate() == 1:
-        # if we have it in form get it from there
-        # otherwise use default
-        variable_id = variable.getId()
-        if variable_id in form_kw:
-           status_dict[variable_id] = form_kw[variable_id]
-        else:
-          status_dict[variable_id] = variable.getInitialValue(object=object)
-    """
-
     # Generate Workflow History List
     self.setStatusOf(workflow.getId(), document, status_dict)
 
-- 
GitLab