From 978aef64f75311113f0b6571884acfce3ac09ed9 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Tue, 27 Aug 2024 17:10:10 +0200 Subject: [PATCH] Monitoring/CustomVarRenderer: Cast data field setting value data_list_id to integer --- library/Director/ProvidedHook/Monitoring/CustomVarRenderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/ProvidedHook/Monitoring/CustomVarRenderer.php b/library/Director/ProvidedHook/Monitoring/CustomVarRenderer.php index 113da5d78..1b37984ce 100644 --- a/library/Director/ProvidedHook/Monitoring/CustomVarRenderer.php +++ b/library/Director/ProvidedHook/Monitoring/CustomVarRenderer.php @@ -118,7 +118,7 @@ public function prefetchForObject(MonitoredObject $object) ] )->join( ['dde' => 'director_datalist_entry'], - 'dds.setting_value = dde.list_id', + 'CAST(dds.setting_value AS INTEGER) = dde.list_id', [] )->where('dds.datafield_id', array_keys($fieldsWithDataLists)) ->where('dds.setting_name', 'datalist_id');