mirror of https://github.com/Icinga/icinga2.git
Fix that the service_object_id is not correctly set in the servicechecks table
fixes #5486
This commit is contained in:
parent
5aca228950
commit
cf81db562f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue