Commit 56352017 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_workflow: in convertWorkflow, getChainsByType method return a regenerated...

erp5_workflow: in convertWorkflow, getChainsByType method return a regenerated dict to avoid scurity issue.
parent eaa25b44
......@@ -87,7 +87,8 @@ for dc_wf in selected_wf_list:\n
workflow = context.dc_workflow_asERP5Object(context, dc_wf, temp=0)\n
selected_wf_id_list.append(dc_wf.id)\n
\n
for ptype_id in context.getChainsByType():\n
type_workflow_dict = context.getChainsByType()\n
for ptype_id in type_workflow_dict:\n
ptype = getattr(context.getPortalObject().portal_types, ptype_id)\n
# 1. clean DC workflow assignement:\n
context.delTypeCBT(ptype.id, dc_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