From f8f89cef6db1a9799e778f83ee1e251b733253fc Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 30 Oct 2014 09:20:42 +0100 Subject: [PATCH] Fix scoping rules for apply rules fixes #7503 --- lib/config/applyrule.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.40.0