Commit e1bfa6cd authored by iv's avatar iv

ERP5Workflow: fix getScriptPathList (WorkflowTool) for initial list being None

parent aa33356d
...@@ -258,6 +258,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -258,6 +258,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
return temp_workflow_list return temp_workflow_list
def getScriptPathList(self, workflow, initial_script_name_list): def getScriptPathList(self, workflow, initial_script_name_list):
if not initial_script_name_list:
return []
script_path_list = [] script_path_list = []
if isinstance(initial_script_name_list, str): if isinstance(initial_script_name_list, str):
initial_script_name_list = [initial_script_name_list] initial_script_name_list = [initial_script_name_list]
......
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