Commit 9aee0ad3 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

Fix erp5_xhtml_style.breadcrumbs migration regarding portal_properties

erp5_xhtml_style.breadcrumbs tries to access portal_properties, which
does not exist anymore (see commit
8721c675, in which CMFDefault was
dropped).

The migration code here allows access to the ERP5 interface, which would
be completely broken otherwise.
parent fba054cb
......@@ -470,6 +470,9 @@ def synchronizeDynamicModules(context, force=False):
if portal.hasObject(tool_id):
portal._delObject(tool_id, suppress_events=True)
migrate = True
if tool_id == 'portal_properties':
portal.portal_skins.erp5_xhtml_style.breadcrumbs.write(
'return []')
if migrate:
portal.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