From dc8184ccf1f5f8e31ec99ed48da2fe63dc193dfc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Apr 2019 13:54:55 +0200 Subject: [PATCH] list/servicegroup-grid: Preserve filter when navigating away refs #3664 --- .../scripts/list/servicegroup-grid.phtml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/servicegroup-grid.phtml b/modules/monitoring/application/views/scripts/list/servicegroup-grid.phtml index cc2e044bc..5ea6d17e4 100644 --- a/modules/monitoring/application/views/scripts/list/servicegroup-grid.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegroup-grid.phtml @@ -3,7 +3,7 @@ tabs ?>
sortBox ?> - icon('th-list', null, ['class' => '-inactive']) ?> icon('th-thumb-empty', null, ['class' => '-active']) ?> @@ -24,7 +24,7 @@ if (! $serviceGroups->hasResult()): ?> services_critical_unhandled > 0): ?> qlink( $serviceGroup->services_critical_unhandled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 0, @@ -46,7 +46,7 @@ if (! $serviceGroups->hasResult()): ?> services_warning_unhandled > 0): ?> qlink( $serviceGroup->services_warning_unhandled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 0, @@ -68,7 +68,7 @@ if (! $serviceGroups->hasResult()): ?> services_unknown_unhandled > 0): ?> qlink( $serviceGroup->services_unknown_unhandled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 0, @@ -90,7 +90,7 @@ if (! $serviceGroups->hasResult()): ?> services_critical_handled > 0): ?> qlink( $serviceGroup->services_critical_handled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 1, @@ -112,7 +112,7 @@ if (! $serviceGroups->hasResult()): ?> services_warning_handled > 0): ?> qlink( $serviceGroup->services_warning_handled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 1, @@ -134,7 +134,7 @@ if (! $serviceGroups->hasResult()): ?> services_unknown_handled > 0): ?> qlink( $serviceGroup->services_unknown_handled, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_handled' => 1, @@ -156,7 +156,7 @@ if (! $serviceGroups->hasResult()): ?> services_pending > 0): ?> qlink( $serviceGroup->services_pending, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_state' => 99 @@ -177,7 +177,7 @@ if (! $serviceGroups->hasResult()): ?> services_ok > 0): ?> qlink( $serviceGroup->services_ok, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), [ 'servicegroup_name' => $serviceGroup->servicegroup_name, 'service_state' => 0 @@ -202,7 +202,7 @@ if (! $serviceGroups->hasResult()): ?> qlink( $serviceGroup->servicegroup_alias, - 'monitoring/list/servicegrid', + $this->url('monitoring/list/servicegrid')->addFilter($this->filterEditor->getFilter()), ['servicegroup_name' => $serviceGroup->servicegroup_name], [ 'title' => sprintf(