[Erp5-report] r10797 - /erp5/trunk/products/ERP5/Tool/TrashTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 18 10:28:36 CEST 2006


Author: romain
Date: Wed Oct 18 10:28:35 2006
New Revision: 10797

URL: http://svn.erp5.org?rev=10797&view=rev
Log:
Bug fix: save correctly workflow chain of Portal Type.

Modified:
    erp5/trunk/products/ERP5/Tool/TrashTool.py

Modified: erp5/trunk/products/ERP5/Tool/TrashTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TrashTool.py?rev=10797&r1=10796&r2=10797&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TrashTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TrashTool.py Wed Oct 18 10:28:35 2006
@@ -117,8 +117,8 @@
         for action in action_list:
           subobjects_dict['action_list'].append(action._getCopy(obj))
         wf_chain = getChainByType(self.getPortalObject())[1]
-        if wf_chain.has_key(object_id):
-          subobjects_dict['workflow_chain'] = wf_chain[object_id]
+        if wf_chain.has_key('chain_%s' % object_id):
+          subobjects_dict['workflow_chain'] = wf_chain['chain_%s' % object_id]
         else:
           subobjects_dict['workflow_chain'] = ''
         return subobjects_dict




More information about the Erp5-report mailing list