mirror of https://github.com/Icinga/icinga2.git
Fix incorrect attribute name on the validator for the Notification class
fixes #12633
This commit is contained in:
parent
a2e70955e1
commit
efbdce803f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue