diff --git a/CHANGES.rst b/CHANGES.rst index 7d4bc397..3001c818 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.1.13 (unreleased) ------------------- -- Nothing changed yet. +- Handle missing `show_dynamic_folders_in_footer` in registry entry. + [cekk] 6.1.12 (2024-02-06) diff --git a/src/design/plone/contenttypes/restapi/services/navigation/get.py b/src/design/plone/contenttypes/restapi/services/navigation/get.py index 70e42e12..73550281 100644 --- a/src/design/plone/contenttypes/restapi/services/navigation/get.py +++ b/src/design/plone/contenttypes/restapi/services/navigation/get.py @@ -14,11 +14,14 @@ class Navigation(BaseNavigation): def __call__(self, expand=False): result = super().__call__(expand=expand) - show_dynamic_folders_in_footer = api.portal.get_registry_record( - "show_dynamic_folders_in_footer", - interface=IDesignPloneSettings, - default=False, - ) + try: + show_dynamic_folders_in_footer = api.portal.get_registry_record( + "show_dynamic_folders_in_footer", + interface=IDesignPloneSettings, + default=True, + ) + except KeyError: + show_dynamic_folders_in_footer = True result["navigation"]["show_in_footer"] = show_dynamic_folders_in_footer return result