From a6d25906668cc317fa01c07c34bafd906c1aed8d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 5 Dec 2019 15:42:47 +0100 Subject: [PATCH] hosts/services: Remove `*_active_checks_enabled` from a redirect's filter Actually only a quick fix but who cares.. --- .../monitoring/application/controllers/HostsController.php | 4 +++- .../monitoring/application/controllers/ServicesController.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/controllers/HostsController.php b/modules/monitoring/application/controllers/HostsController.php index fd3130ec3..9219df87b 100644 --- a/modules/monitoring/application/controllers/HostsController.php +++ b/modules/monitoring/application/controllers/HostsController.php @@ -76,7 +76,9 @@ class HostsController extends Controller $form ->setBackend($this->backend) ->setObjects($this->hostList) - ->setRedirectUrl(Url::fromPath('monitoring/hosts/show')->setParams($this->params)) + ->setRedirectUrl(Url::fromPath('monitoring/hosts/show')->setParams( + $this->params->without('host_active_checks_enabled') + )) ->handleRequest(); $this->view->form = $form; diff --git a/modules/monitoring/application/controllers/ServicesController.php b/modules/monitoring/application/controllers/ServicesController.php index aa83d210a..1d65de919 100644 --- a/modules/monitoring/application/controllers/ServicesController.php +++ b/modules/monitoring/application/controllers/ServicesController.php @@ -82,7 +82,9 @@ class ServicesController extends Controller $form ->setBackend($this->backend) ->setObjects($this->serviceList) - ->setRedirectUrl(Url::fromPath('monitoring/services/show')->setParams($this->params)) + ->setRedirectUrl(Url::fromPath('monitoring/services/show')->setParams( + $this->params->without('service_active_checks_enabled') + )) ->handleRequest(); $this->view->form = $form;