Commit f194b339 authored by wenjie.zheng's avatar wenjie.zheng

erp5_core: fix RP5Site_getWorkflowStateItemList a dict contents error."

parent 13388c49
......@@ -95,12 +95,13 @@ for portal_type in portal_type:\n
if state_var not in (None, workflow.getStateVariable()):\n
continue\n
\n
for state in workflow.getStateValueList():\n
if state.id in state_set:\n
for state_id in workflow.getStateValueList():\n
state = workflow.getStateValueList().get(state_id)\n
if state_id in state_set:\n
continue\n
state_set.add(state.id)\n
state_set.add(state_id)\n
\n
result_list.append((str(translateString(state.title)), state.id))\n
result_list.append((str(translateString(state.title)), state_id))\n
\n
return result_list\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