Commit f1e8ed6c authored by Tristan Cavelier's avatar Tristan Cavelier

XXX patch: to avoid backup "view" object

parent b094e983
......@@ -1370,7 +1370,8 @@ class ObjectTemplateItem(BaseTemplateItem):
# the right order group
old_groups[path] = deepcopy(old_obj.groups)
# we force backup since it was an existing object
subobjects_dict = self._backupObject('backup', trashbin,
if "view" not in path_list:
subobjects_dict = self._backupObject('backup', trashbin,
container_path, object_id)
# in case of portal types, we want to keep some properties
if interfaces.ITypeProvider.providedBy(container):
......
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