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