mirror of https://github.com/Icinga/icinga2.git
Fix: Deleting an object via API does not disable it in DB IDO
fixes #11065
This commit is contained in:
parent
f06f6d4d86
commit
4049cc0b9a
|
@ -407,9 +407,13 @@ void DbConnection::UpdateObject(const ConfigObject::Ptr& object)
|
|||
ActivateObject(dbobj);
|
||||
dbobj->SendConfigUpdate();
|
||||
dbobj->SendStatusUpdate();
|
||||
} else if (!active && dbActive)
|
||||
} else if (!active) {
|
||||
/* Deactivate the deleted object no matter
|
||||
* which state it had in the database.
|
||||
*/
|
||||
DeactivateObject(dbobj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DbConnection::UpdateAllObjects(void)
|
||||
|
|
Loading…
Reference in New Issue