Fix config validation for DB IDO categories 'DbCatEverything'

refs #5238

refs #5483
This commit is contained in:
Michael Friedrich 2017-08-09 16:30:01 +02:00
parent 2ed4212f00
commit 2b3a65d928
1 changed files with 1 additions and 1 deletions

View File

@ -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)