]> granicus.if.org Git - icinga2/commitdiff
Fix that the service_object_id is not correctly set in the servicechecks table
authorJohannes Meyer <johannes.meyer@netways.de>
Thu, 16 Jan 2014 15:12:29 +0000 (16:12 +0100)
committerJohannes Meyer <johannes.meyer@netways.de>
Thu, 16 Jan 2014 15:12:29 +0000 (16:12 +0100)
fixes #5486

lib/db_ido/servicedbobject.cpp

index d7b75e168d079b6e6e73cda180a8e3224a634980..953ac925db3c4b6f96044e530d485c840eef9eb4 100644 (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);