Commit e8dc2f2d authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: save correctly workflow chain of Portal Type.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70183ef3
...@@ -117,8 +117,8 @@ class TrashTool(BaseTool): ...@@ -117,8 +117,8 @@ class TrashTool(BaseTool):
for action in action_list: for action in action_list:
subobjects_dict['action_list'].append(action._getCopy(obj)) subobjects_dict['action_list'].append(action._getCopy(obj))
wf_chain = getChainByType(self.getPortalObject())[1] wf_chain = getChainByType(self.getPortalObject())[1]
if wf_chain.has_key(object_id): if wf_chain.has_key('chain_%s' % object_id):
subobjects_dict['workflow_chain'] = wf_chain[object_id] subobjects_dict['workflow_chain'] = wf_chain['chain_%s' % object_id]
else: else:
subobjects_dict['workflow_chain'] = '' subobjects_dict['workflow_chain'] = ''
return subobjects_dict return subobjects_dict
......
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