From: Michael Friedrich Date: Thu, 28 Jul 2016 15:39:52 +0000 (+0200) Subject: Fix that reminder notifications ignore HA mode X-Git-Tag: v2.5.0~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=077dbe1db6b137dbb91f41b4049a41b73a39a002;p=icinga2 Fix that reminder notifications ignore HA mode fixes #12249 --- diff --git a/lib/notification/notificationcomponent.cpp b/lib/notification/notificationcomponent.cpp index aafa2815d..20cfa0163 100644 --- a/lib/notification/notificationcomponent.cpp +++ b/lib/notification/notificationcomponent.cpp @@ -75,11 +75,11 @@ void NotificationComponent::NotificationTimerHandler(void) if (!notification->IsActive()) continue; - Checkable::Ptr checkable = notification->GetCheckable(); - - if (checkable->IsPaused() && GetEnableHA()) + if (notification->IsPaused() && GetEnableHA()) continue; + Checkable::Ptr checkable = notification->GetCheckable(); + if (!IcingaApplication::GetInstance()->GetEnableNotifications() || !checkable->GetEnableNotifications()) continue;