diff --git a/plone/app/discussion/profiles/default/metadata.xml b/plone/app/discussion/profiles/default/metadata.xml index 6557251..c779e86 100644 --- a/plone/app/discussion/profiles/default/metadata.xml +++ b/plone/app/discussion/profiles/default/metadata.xml @@ -1,5 +1,5 @@ - 1000 + 1001 profile-plone.resource:default profile-plone.app.registry:default diff --git a/plone/app/discussion/upgrades.py b/plone/app/discussion/upgrades.py index d9114f4..7a0e30c 100644 --- a/plone/app/discussion/upgrades.py +++ b/plone/app/discussion/upgrades.py @@ -61,3 +61,7 @@ def upgrade_comment_workflows(context): comment.reindexObjectSecurity() except (AttributeError, KeyError): logger.info('Could not reindex comment {0}'.format(brain.getURL())) + + +def add_js_to_plone_legacy(context): + context.runImportStepFromProfile(default_profile, 'plone.app.registry') diff --git a/plone/app/discussion/upgrades.zcml b/plone/app/discussion/upgrades.zcml index 9fa258c..02a7e54 100644 --- a/plone/app/discussion/upgrades.zcml +++ b/plone/app/discussion/upgrades.zcml @@ -51,4 +51,15 @@ /> + + + +