]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect value for the triggered_by_id column.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 9 Dec 2013 08:22:04 +0000 (09:22 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 9 Dec 2013 08:22:04 +0000 (09:22 +0100)
Fixes #5279

lib/db_ido/servicedbobject.cpp

index d4797e01a9bfe3ac96ad82c7ea7e0149e66a7f4e..fe23f8c306447120297ead58e71bfeb0c475f09f 100644 (file)
@@ -544,7 +544,7 @@ void ServiceDbObject::AddDowntimeByType(const DynamicObject::Ptr& object, const
        }
 
        fields1->Set("author_name", downtime->GetAuthor());
-       fields1->Set("triggered_by_id", downtime->GetTriggeredBy());
+       fields1->Set("triggered_by_id", Service::GetDowntimeByID(downtime->GetTriggeredBy()));
        fields1->Set("is_fixed", downtime->GetFixed());
        fields1->Set("duration", downtime->GetDuration());
        fields1->Set("scheduled_start_time", DbValue::FromTimestamp(downtime->GetStartTime()));