]> granicus.if.org Git - icinga2/commitdiff
IDO: Fix where condition for downtime history updates
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 20 Mar 2017 12:19:37 +0000 (13:19 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Mon, 27 Mar 2017 08:15:09 +0000 (10:15 +0200)
fixes #5080

lib/db_ido/dbevents.cpp

index 9da40139bcbf47223a6ccf2e15d9d002adb4f346..cde11dd4680b222393e9dea0a752ecb4c8a86b7a 100644 (file)
@@ -689,6 +689,7 @@ void DbEvents::TriggerDowntime(const Downtime::Ptr& downtime)
        query3.Fields = fields3;
 
        query3.WhereCriteria = new Dictionary();
+       query3.WhereCriteria->Set("object_id", checkable);
        query3.WhereCriteria->Set("internal_downtime_id", downtime->GetLegacyId());
        query3.WhereCriteria->Set("entry_time", DbValue::FromTimestamp(downtime->GetEntryTime()));
        query3.WhereCriteria->Set("scheduled_start_time", DbValue::FromTimestamp(downtime->GetStartTime()));