Commit 176b69a6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

join only for list or tuple case, otherwise we can get wrong different of workflow chains.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9bccba97
...@@ -1984,7 +1984,9 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -1984,7 +1984,9 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
# compare object to see it there is changes # compare object to see it there is changes
new_object = self._objects[path] new_object = self._objects[path]
old_object = installed_item._objects[path] old_object = installed_item._objects[path]
if isinstance(new_object, list) or isinstance(new_object, tuple):
new_object = self._chain_string_separator.join(new_object) new_object = self._chain_string_separator.join(new_object)
if isinstance(old_object, list) or isinstance(old_object, tuple):
old_object = self._chain_string_separator.join(old_object) old_object = self._chain_string_separator.join(old_object)
if new_object != old_object: if new_object != old_object:
modified_object_list.update({path : ['Modified', self.getTemplateTypeName()]}) modified_object_list.update({path : ['Modified', self.getTemplateTypeName()]})
......
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