From b4bae84ca4a15f1a944f965d7e0e310012b3ab7f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 15 Nov 2018 16:36:44 +0100 Subject: [PATCH] Respect filters for all links in the group overviews refs #3586 --- .../application/views/scripts/list/hostgroups.phtml | 4 ++-- .../application/views/scripts/list/servicegroups.phtml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index 6a8152c37..c076ec8f9 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -42,7 +42,7 @@ if (! $this->compact): ?> qlink( $hostGroup->hostgroup_alias, - 'monitoring/list/hosts', + $this->url('monitoring/list/hosts')->addFilter($this->filterEditor->getFilter()), array('hostgroup_name' => $hostGroup->hostgroup_name, 'sort' => 'host_severity'), array('title' => sprintf( $this->translate('List all hosts in the group "%s"'), @@ -140,7 +140,7 @@ if (! $this->compact): ?> qlink( $hostGroup->services_total, - 'monitoring/list/services', + $this->url('monitoring/list/services')->addFilter($this->filterEditor->getFilter()), array('hostgroup_name' => $hostGroup->hostgroup_name, 'sort' => 'service_severity'), array('title' => sprintf( $this->translate('List all services of all hosts in host group "%s"'), diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml index 442352cc1..87ced6a95 100644 --- a/modules/monitoring/application/views/scripts/list/servicegroups.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml @@ -38,7 +38,7 @@ if (! $this->compact): ?> qlink( $serviceGroup->servicegroup_alias, - 'monitoring/list/services', + $this->url('monitoring/list/services')->addFilter($this->filterEditor->getFilter()), array('servicegroup_name' => $serviceGroup->servicegroup_name, 'sort' => 'service_severity'), array('title' => sprintf($this->translate('List all services in the group "%s"'), $serviceGroup->servicegroup_alias)) ) ?>