Fix config validation for templates used as object reference name

fixes #10830
This commit is contained in:
Michael Friedrich 2015-12-17 13:46:39 +01:00 committed by Gunnar Beutner
parent 99efc7be2c
commit 925161d9b4
1 changed files with 6 additions and 1 deletions

View File

@ -144,7 +144,12 @@ class DefaultValidationUtils : public ValidationUtils
public:
virtual bool ValidateName(const String& type, const String& name) const override
{
return ConfigItem::GetByTypeAndName(type, name) != ConfigItem::Ptr();
ConfigItem::Ptr item = ConfigItem::GetByTypeAndName(type, name);
if (!item || (item && item->IsAbstract()))
return false;
return true;
}
};