From c3c1993870dc550b9eca0869c39dc3639727abf4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 5 Jun 2015 11:47:39 +0200 Subject: [PATCH] monitoring: Use grouping instead of distinct in the service comment query refs #9009 --- .../Monitoring/Backend/Ido/Query/ServicecommentQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicecommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicecommentQuery.php index 655f0c0cc..40b6e805f 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicecommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicecommentQuery.php @@ -106,7 +106,7 @@ class ServicecommentQuery extends IdoQuery 'hgo.objecttype_id = ?', 3 ); - $this->distinct(); + $this->group(array('so.name2', 'so.name1')); } /** @@ -160,7 +160,7 @@ class ServicecommentQuery extends IdoQuery 'sgo.objecttype_id = ?', 4 ); - $this->distinct(); + $this->group(array('so.name2', 'so.name1')); } /**