Commit 7a5bece0 authored by wenjie.zheng's avatar wenjie.zheng

erp5_core: ERP5Site_getWorkflowStateItemList, compatibility related modification.

parent 659728a0
......@@ -88,14 +88,14 @@ for portal_type in portal_type:\n
workflow = workflow_tool[workflow_id]\n
\n
# skip interaction workflows or workflows with only one state (such as edit_workflow)\n
if workflow.states is None or len(workflow.states.objectIds()) <= 1:\n
if workflow.getStateValueList() is None or len(workflow.getStateIdList()) <= 1:\n
continue\n
\n
# skip workflows using another state variable\n
if state_var not in (None, workflow.variables.getStateVar()):\n
if state_var not in (None, workflow.getStateVariable()):\n
continue\n
\n
for state in workflow.states.objectValues():\n
for state in workflow.getStateValueList():\n
if state.id in state_set:\n
continue\n
state_set.add(state.id)\n
......
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