mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
HostcommentQuery: Fix grouping when services are being joined
fixes #9503
This commit is contained in:
parent
8b4fb89a4b
commit
a7498ca0d8
@ -157,7 +157,7 @@ class HostcommentQuery extends IdoQuery
|
|||||||
public function getGroup()
|
public function getGroup()
|
||||||
{
|
{
|
||||||
$group = array();
|
$group = array();
|
||||||
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('servicegroups')) {
|
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('services')) {
|
||||||
$group = array('c.comment_id', 'ho.object_id');
|
$group = array('c.comment_id', 'ho.object_id');
|
||||||
if ($this->hasJoinedVirtualTable('hosts')) {
|
if ($this->hasJoinedVirtualTable('hosts')) {
|
||||||
$group[] = 'h.host_id';
|
$group[] = 'h.host_id';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user