Fix incorrect value for the triggered_by_id column.

Fixes #5279
This commit is contained in:
Gunnar Beutner 2013-12-09 09:22:04 +01:00
parent 9bee1aaef6
commit 3b99dc1e84
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ void ServiceDbObject::AddDowntimeByType(const DynamicObject::Ptr& object, const
} }
fields1->Set("author_name", downtime->GetAuthor()); 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("is_fixed", downtime->GetFixed());
fields1->Set("duration", downtime->GetDuration()); fields1->Set("duration", downtime->GetDuration());
fields1->Set("scheduled_start_time", DbValue::FromTimestamp(downtime->GetStartTime())); fields1->Set("scheduled_start_time", DbValue::FromTimestamp(downtime->GetStartTime()));