From: Gunnar Beutner Date: Thu, 30 Oct 2014 08:20:42 +0000 (+0100) Subject: Fix scoping rules for apply rules X-Git-Tag: v2.2.0~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8f89cef6db1a9799e778f83ee1e251b733253fc;p=icinga2 Fix scoping rules for apply rules fixes #7503 --- diff --git a/lib/config/applyrule.cpp b/lib/config/applyrule.cpp index 737b47d7c..11870e70e 100644 --- a/lib/config/applyrule.cpp +++ b/lib/config/applyrule.cpp @@ -71,10 +71,7 @@ void ApplyRule::AddRule(const String& sourceType, const String& targetType, cons bool ApplyRule::EvaluateFilter(const Dictionary::Ptr& scope) const { - scope->Set("__parent", m_Scope); - bool result = m_Filter->Evaluate(scope); - scope->Remove("__parent"); - return result; + return m_Filter->Evaluate(scope); } void ApplyRule::EvaluateRules(bool clear)