mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
5ae5b5e8d3
commit
dc7d3a9c92
@ -362,9 +362,15 @@ class ServicestatusQuery extends IdoQuery
|
|||||||
*/
|
*/
|
||||||
public function getGroup()
|
public function getGroup()
|
||||||
{
|
{
|
||||||
$group = array();
|
$group = parent::getGroup() ?: array();
|
||||||
|
if (! is_array($group)) {
|
||||||
|
$group = array($group);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('servicegroups')) {
|
if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('servicegroups')) {
|
||||||
$group = array('s.service_id', 'so.object_id');
|
$group[] = 's.service_id';
|
||||||
|
$group[] = 'so.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