mirror of https://github.com/Icinga/icinga2.git
Fix config validation for DB IDO categories 'DbCatEverything'
refs #5238
This commit is contained in:
parent
37eb940f6e
commit
f6691b4936
|
@ -459,7 +459,7 @@ void DbConnection::ValidateCategories(const Array::Ptr& value, const ValidationU
|
|||
|
||||
int filter = FilterArrayToInt(value, DbQuery::GetCategoryFilterMap(), 0);
|
||||
|
||||
if (filter == -1 || (filter & ~(DbCatInvalid | DbCatEverything | DbCatConfig | DbCatState |
|
||||
if (filter != DbCatEverything && (filter & ~(DbCatInvalid | DbCatEverything | DbCatConfig | DbCatState |
|
||||
DbCatAcknowledgement | DbCatComment | DbCatDowntime | DbCatEventHandler | DbCatExternalCommand |
|
||||
DbCatFlapping | DbCatLog | DbCatNotification | DbCatProgramStatus | DbCatRetention |
|
||||
DbCatStateHistory)) != 0)
|
||||
|
|
Loading…
Reference in New Issue