From b7eaca74251b7c7f343b99bc72900e3aa5696d93 Mon Sep 17 00:00:00 2001 From: Ronny Bruska Date: Thu, 30 Jan 2025 07:52:57 +0100 Subject: [PATCH] HTML Emails: Fix possible UndefinedError in jinja template CMK-21497 Change-Id: Ib3e45fcaaff63f279303e972d233bc985c4a3007 --- notifications/templates/mail/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/templates/mail/base.html b/notifications/templates/mail/base.html index 40d63aa56b0..8c87a372295 100644 --- a/notifications/templates/mail/base.html +++ b/notifications/templates/mail/base.html @@ -111,7 +111,7 @@ {% if elements_without_graph %} {% include 'additional.html' %} {% endif %} - {% if data.PARAMETER_CONTACT_GROUPS %} + {% if data.PARAMETER_CONTACT_GROUPS and data.HOSTCONTACTGROUPNAMES|default(false) %} {% include 'contact_groups.html' %} {% endif %} {% if service_notification and data.PARAMETER_SVC_LABELS %}