Commit 31f9f787 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

erp5_catalog: Migrate portal_catalog while checking for recursive migration

parent 3bbb7f11
...@@ -1724,8 +1724,8 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -1724,8 +1724,8 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
tool = tool.activate() tool = tool.activate()
tool.migrateToPortalTypeClass(tool_id not in ( tool.migrateToPortalTypeClass(tool_id not in (
'portal_activities', 'portal_simulation', 'portal_templates', 'portal_activities', 'portal_simulation', 'portal_templates',
'portal_trash')) 'portal_trash', 'portal_catalog'))
if tool_id in ('portal_trash',): if tool_id in ('portal_trash', 'portal_catalog'):
for obj in tool.objectValues(): for obj in tool.objectValues():
obj.migrateToPortalTypeClass() obj.migrateToPortalTypeClass()
......
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