From 10571c3178aebd79730921a998685a5fbf8f4a7f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 21 Jan 2015 10:10:07 +0100 Subject: [PATCH] monitoring: Fix duplicate array key 'service_description' in the StatehistoryQuery --- .../Monitoring/Backend/Ido/Query/StatehistoryQuery.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php index e979cdc08..b8d320c9c 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/StatehistoryQuery.php @@ -23,13 +23,11 @@ class StatehistoryQuery extends IdoQuery 'output' => 'sh.output', 'attempt' => 'sh.current_check_attempt', 'max_attempts' => 'sh.max_check_attempts', - 'host' => 'sho.name1 COLLATE latin1_general_ci', - 'service' => 'sho.name2 COLLATE latin1_general_ci', 'host_name' => 'sho.name1 COLLATE latin1_general_ci', + 'service' => 'sho.name2 COLLATE latin1_general_ci', 'service_description' => 'sho.name2 COLLATE latin1_general_ci', 'service_host_name' => 'sho.name1 COLLATE latin1_general_ci', - 'service_description' => 'sho.name2 COLLATE latin1_general_ci', 'object_type' => "CASE WHEN sho.objecttype_id = 1 THEN 'host' ELSE 'service' END" ) );