Commit 9a61b162 authored by iv's avatar iv

ERP5Workflow: fix parameter name in doActionFor

parent 8c2f568d
...@@ -101,8 +101,8 @@ class TestOOoChart(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -101,8 +101,8 @@ class TestOOoChart(ERP5TypeTestCase, ZopeTestCase.Functional):
preference = self.getPortal().portal_preferences.default_site_preference preference = self.getPortal().portal_preferences.default_site_preference
preference.setPriority(1) preference.setPriority(1)
if preference.getPreferenceState() == 'disabled': if preference.getPreferenceState() == 'disabled':
self.getWorkflowTool().doActionFor(ob=preference, self.getWorkflowTool().doActionFor(preference, # object
action='enable_action', 'enable_action', # action
wf_id='preference_workflow') wf_id='preference_workflow')
self.validator = Validator() self.validator = Validator()
......
...@@ -190,7 +190,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -190,7 +190,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
new_ids=[new_workflow_id,]) new_ids=[new_workflow_id,])
def doActionFor(self, current_object, action_reference, def doActionFor(self, current_object, action_reference,
workflow_id=None, *args, **kw): wf_id=None, *args, **kw):
workflow_id = wf_id
workflow_list = self.getWorkflowsFor(current_object.getPortalType()) workflow_list = self.getWorkflowsFor(current_object.getPortalType())
action_id = action_reference action_id = action_reference
if workflow_id is None: if workflow_id is None:
......
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