Commit 9a398d0d authored by wenjie.zheng's avatar wenjie.zheng

patches/WorkflowTool.py: Modify worklfow to wf for the same reason...

parent 989fbc7e
...@@ -982,8 +982,8 @@ def _doActionFor(self, ob, action, wf_id=None, *args, **kw): ...@@ -982,8 +982,8 @@ def _doActionFor(self, ob, action, wf_id=None, *args, **kw):
case = 1 case = 1
break break
for workflow_id in workflow_list: for workflow_id in workflow_list:
workflow = self.getPortalObject().getDefaultModule('Workflow')._getOb(workflow_id) wf = self.getPortalObject().getDefaultModule('Workflow')._getOb(workflow_id)
if workflow.isActionSupported(ob, action, **kw): if wf.isActionSupported(ob, action, **kw):
found = 1 found = 1
case = 2 case = 2
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment