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):
preference = self.getPortal().portal_preferences.default_site_preference
preference.setPriority(1)
if preference.getPreferenceState() == 'disabled':
self.getWorkflowTool().doActionFor(ob=preference,
action='enable_action',
self.getWorkflowTool().doActionFor(preference, # object
'enable_action', # action
wf_id='preference_workflow')
self.validator = Validator()
......
......@@ -190,7 +190,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
new_ids=[new_workflow_id,])
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())
action_id = action_reference
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