Commit 1569568b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix the condition to check portal type or not, because some module portal...

fix the condition to check portal type or not, because some module portal types has 'ERP5 Folder' meta type, thus we can loose allowed_content_types etc. by updating PortalTypeTemplateItem.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4cc21207
...@@ -1033,7 +1033,7 @@ class ObjectTemplateItem(BaseTemplateItem): ...@@ -1033,7 +1033,7 @@ class ObjectTemplateItem(BaseTemplateItem):
subobjects_dict = self._backupObject(action, trashbin, subobjects_dict = self._backupObject(action, trashbin,
container_path, object_id) container_path, object_id)
# in case of portal types, we want to keep some properties # in case of portal types, we want to keep some properties
if getattr(old_obj, 'meta_type', None) == 'ERP5 Base Type': if interfaces.ITypeProvider.providedBy(container):
for attr in ('allowed_content_types', for attr in ('allowed_content_types',
'hidden_content_type_list', 'hidden_content_type_list',
'property_sheet_list', 'property_sheet_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