Commit 5e6c04cd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sort workflow list in PortalTypeWorkflowChainTemplateItem to get always the same result.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e752615
......@@ -1690,7 +1690,7 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
workflow_list = [workflow_list]
xml_data += '\n <chain>'
xml_data += '\n <type>%s</type>' %(key,)
xml_data += '\n <workflow>%s</workflow>' %(', '.join(workflow_list))
xml_data += '\n <workflow>%s</workflow>' %(', '.join(sorted(workflow_list)))
xml_data += '\n </chain>'
xml_data += '\n</workflow_chain>'
return xml_data
......
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