mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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,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…
x
Reference in New Issue
Block a user