Fix that the service_object_id is not correctly set in the servicechecks table

fixes #5486
This commit is contained in:
Johannes Meyer 2014-01-16 16:12:29 +01:00
parent 5aca228950
commit cf81db562f
1 changed files with 1 additions and 0 deletions

View File

@ -1284,6 +1284,7 @@ void ServiceDbObject::AddServiceCheckHistory(const Service::Ptr& service, const
fields1->Set("perfdata", CompatUtility::GetCheckResultPerfdata(cr));
fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */
fields1->Set("service_object_id", service);
query1.Fields = fields1;
OnQuery(query1);