From 8e4312bb83ffd766328842d6a07e7c2394e47803 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Thu, 4 Jul 2024 12:34:31 +0200 Subject: [PATCH] ObjectsRenderer: Add missing `id` column This column is required to fetch further relations --- .../ProvidedHook/Notifications/ObjectsRenderer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Notifications/ProvidedHook/Notifications/ObjectsRenderer.php b/library/Notifications/ProvidedHook/Notifications/ObjectsRenderer.php index 324f73ee..66bf37e9 100644 --- a/library/Notifications/ProvidedHook/Notifications/ObjectsRenderer.php +++ b/library/Notifications/ProvidedHook/Notifications/ObjectsRenderer.php @@ -170,8 +170,10 @@ private function buildQueries(array $objectIdTags): array $servicesQuery = Service::on($this->getDb()) ->with('host') ->columns([ + 'service.id', 'service.name', 'service.display_name', + 'host.id', 'host.name', 'host.display_name', ])