Bugfix: %require didn't work if parent type had a validator for the same attribute.

This commit is contained in:
Gunnar Beutner 2013-02-06 13:21:55 +01:00
parent 671eb0110f
commit 07b50ecce8
1 changed files with 4 additions and 1 deletions

View File

@ -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)