From 4049cc0b9a38f460f1d0a670517b939467685fdd Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 5 Feb 2016 12:37:00 +0100 Subject: [PATCH] Fix: Deleting an object via API does not disable it in DB IDO fixes #11065 --- lib/db_ido/dbconnection.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index 64875d822..514e7bc51 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -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); + } } } -- 2.40.0