Fix incorrect attribute name on the validator for the Notification class

fixes #12633
This commit is contained in:
Gunnar Beutner 2016-09-04 17:50:20 +02:00
parent a2e70955e1
commit efbdce803f
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ void Notification::ValidateStates(const Array::Ptr& value, const ValidationUtils
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("states"), "State filter is invalid.")); BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("states"), "State filter is invalid."));
if (!GetServiceName().IsEmpty() && (filter == -1 || (filter & ~(StateFilterOK | StateFilterWarning | StateFilterCritical | StateFilterUnknown)) != 0)) if (!GetServiceName().IsEmpty() && (filter == -1 || (filter & ~(StateFilterOK | StateFilterWarning | StateFilterCritical | StateFilterUnknown)) != 0))
BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("types"), "State filter is invalid.")); BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("states"), "State filter is invalid."));
} }
void Notification::ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils) void Notification::ValidateTypes(const Array::Ptr& value, const ValidationUtils& utils)