From cf81db562f0441ba1c11f67b8d13e8b1d8dbe8df Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 16 Jan 2014 16:12:29 +0100 Subject: [PATCH] Fix that the service_object_id is not correctly set in the servicechecks table fixes #5486 --- lib/db_ido/servicedbobject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db_ido/servicedbobject.cpp b/lib/db_ido/servicedbobject.cpp index d7b75e168..953ac925d 100644 --- a/lib/db_ido/servicedbobject.cpp +++ b/lib/db_ido/servicedbobject.cpp @@ -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); -- 2.40.0