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

erp5_forge: GlossaryModule_getTermDictListFromWorkflow compatibility modification.

parent df12c1d9
......@@ -68,7 +68,7 @@ for bt_id in template_list:\n
wf = getattr(context.portal_workflow, wf_id)\n
if getattr(wf, "interactions", marker) is marker: # only way to make sure it is not an interaction workflow ?\n
term_dict[(wf_id, bt_id, wf.title, wf.description)] = wf_id\n
for state_id, state in wf.states.items():\n
for state_id, state in wf.getStateValueList().items():\n
term_dict[(state_id, bt_id, state.title, state.description)] = wf_id\n
for trans_id, trans in wf.transitions.items():\n
term_dict[(trans_id, bt_id, trans.title, trans.description)] = wf_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