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
0dc6189f47
commit
7cbe1c46c9
|
@ -407,8 +407,12 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue