From 044027772dabfe1af1163daa0c15fc1bf5bef30d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 5 Jun 2015 11:46:45 +0200 Subject: [PATCH] monitoring: Use grouping instead of distinct in the host comment query refs #9009 --- .../Monitoring/Backend/Ido/Query/HostcommentQuery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php index a61043b4c..aafd7dbae 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php @@ -101,7 +101,7 @@ class HostcommentQuery extends IdoQuery 'hgo.objecttype_id = ?', 3 ); - $this->distinct(); + $this->group('ho.name1'); } /** @@ -154,7 +154,7 @@ class HostcommentQuery extends IdoQuery 'sgo.objecttype_id = ?', 4 ); - $this->distinct(); + $this->group('ho.name1'); } /** @@ -178,6 +178,6 @@ class HostcommentQuery extends IdoQuery 'so.objecttype_id = ?', 2 ); - $this->distinct(); + $this->group('ho.name1'); } }