From: Gunnar Beutner Date: Mon, 9 Dec 2013 08:22:04 +0000 (+0100) Subject: Fix incorrect value for the triggered_by_id column. X-Git-Tag: v0.0.6~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b99dc1e84436e8d03248d93d9b501b3ddfc0ee5;p=icinga2 Fix incorrect value for the triggered_by_id column. Fixes #5279 --- diff --git a/lib/db_ido/servicedbobject.cpp b/lib/db_ido/servicedbobject.cpp index d4797e01a..fe23f8c30 100644 --- a/lib/db_ido/servicedbobject.cpp +++ b/lib/db_ido/servicedbobject.cpp @@ -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()));