HostcommentQuery: Fix grouping when services are being joined

fixes #9503
This commit is contained in:
Johannes Meyer 2015-06-25 13:03:33 +02:00
parent 8b4fb89a4b
commit a7498ca0d8
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ class HostcommentQuery extends IdoQuery
public function getGroup()
{
$group = array();
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('servicegroups')) {
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('services')) {
$group = array('c.comment_id', 'ho.object_id');
if ($this->hasJoinedVirtualTable('hosts')) {
$group[] = 'h.host_id';