From: Gunnar Beutner Date: Wed, 6 Feb 2013 12:21:55 +0000 (+0100) Subject: Bugfix: %require didn't work if parent type had a validator for the same attribute. X-Git-Tag: v0.0.2~535 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07b50ecce8fe468f52a83012d189f07c78cd45fb;p=icinga2 Bugfix: %require didn't work if parent type had a validator for the same attribute. --- diff --git a/lib/config/configtype.cpp b/lib/config/configtype.cpp index 55c4087a2..0c4dfadc4 100644 --- a/lib/config/configtype.cpp +++ b/lib/config/configtype.cpp @@ -147,9 +147,12 @@ void ConfigType::ValidateDictionary(const Dictionary::Ptr& dictionary, if (subRuleList) subRuleLists.push_back(subRuleList); + if (overallResult == ValidationOK) + continue; + if (result == ValidationOK) { overallResult = result; - break; + continue; } if (result == ValidationInvalidType)