Commit 5204de2a authored by Nicolas Delaby's avatar Nicolas Delaby

Do not try to access value inside dictionary with modified key.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33799 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0e6ed52
...@@ -1940,10 +1940,10 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -1940,10 +1940,10 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
new_key_list = self._objects.keys() new_key_list = self._objects.keys()
new_dict = PersistentMapping() new_dict = PersistentMapping()
# Fix key from installed bt if necessary # Fix key from installed bt if necessary
for key in installed_item._objects: for key, value in installed_item._objects.iteritems():
if not 'portal_type_workflow_chain/' in key: if not 'portal_type_workflow_chain/' in key:
key = 'portal_type_workflow_chain/%s' % (key) key = 'portal_type_workflow_chain/%s' % (key)
new_dict[key] = installed_item._objects[key] new_dict[key] = value
if new_dict: if new_dict:
installed_item._objects = new_dict installed_item._objects = new_dict
for path in new_key_list: for path in new_key_list:
......
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