Commit 9cdd7ce4 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Eteri

BusinessTemplate: Refactor mistake for modified_object_list assignment

parent 72cb1722
...@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem): ...@@ -2753,11 +2753,11 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
if new_object != old_object: if new_object != old_object:
modified_object_list[path] = 'Modified', self.getTemplateTypeName() modified_object_list[path] = 'Modified', self.getTemplateTypeName()
else: # new object else: # new object
modified_object_list.update[path] = 'New', self.getTemplateTypeName() modified_object_list[path] = 'New', self.getTemplateTypeName()
# get removed object # get removed object
for path in installed_item._objects: for path in installed_item._objects:
if path not in self._objects: if path not in self._objects:
modified_object_list.update[path] = 'Removed', self.getTemplateTypeName() modified_object_list[path] = 'Removed', self.getTemplateTypeName()
return modified_object_list return modified_object_list
def _importFile(self, file_name, file): def _importFile(self, file_name, file):
......
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