From 54175f98bff41a3eb5bda09bfcae2feae05ef64b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 17 Apr 2014 16:14:57 +0000 Subject: [PATCH] Fix wrong contactgroup service column and make better use of MySQL indexes --- .../Monitoring/Backend/Ido/Query/ContactgroupQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php index 5293dff81..c5b7e0e26 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php @@ -37,7 +37,7 @@ class ContactgroupQuery extends IdoQuery 'services' => array( 'service_object_id' => 'so.object_id', 'service_host_name' => 'so.name1 COLLATE latin1_general_ci', - 'service' => 'so.name1 COLLATE latin1_general_ci', + 'service' => 'so.name2 COLLATE latin1_general_ci', 'service_description' => 'so.name2 COLLATE latin1_general_ci', ) ); @@ -96,7 +96,7 @@ class ContactgroupQuery extends IdoQuery { $scgSub = $this->db->select()->distinct() ->from($this->prefix . 'service_contactgroups', array( - 'contactgroup_object_id', 'service_id' + 'service_id', 'contactgroup_object_id' )); /*