From ed2a5969d09f5e07b16323b9b18e34169f6e34ad Mon Sep 17 00:00:00 2001 From: Ronny Bruska Date: Fri, 27 Sep 2024 16:39:11 +0200 Subject: [PATCH] HTML Email: Handle old floating_graph option Change-Id: I40c108bf0432da281cc2624350d61b89fd3d80dd --- cmk/gui/wato/_notification_parameter/_mail.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmk/gui/wato/_notification_parameter/_mail.py b/cmk/gui/wato/_notification_parameter/_mail.py index fa906ce5d77..ebd21238ae9 100644 --- a/cmk/gui/wato/_notification_parameter/_mail.py +++ b/cmk/gui/wato/_notification_parameter/_mail.py @@ -76,6 +76,7 @@ def _url_prefix_setting(self, is_cse: bool) -> dict[str, DictElement[Any]]: group=DictGroup( title=Title("Settings"), ), + # TODO only option that crashes from old configs, getting {"automatic": "http"} parameter_form=CascadingSingleChoice( title=Title("URL prefix for links to Checkmk"), help_text=Help( @@ -314,6 +315,15 @@ def _content_elements() -> dict[str, DictElement[Any]]: ), ), ), + "no_floating_graphs": DictElement( + group=DictGroup( + title=Title("Email body/content"), + ), + parameter_form=FixedValue( + value=True, + ), + render_only=True, + ), }