hosts/services: Remove `*_active_checks_enabled` from a redirect's filter

Actually only a quick fix but who cares..
This commit is contained in:
Johannes Meyer 2019-12-05 15:42:47 +01:00
parent cc08f7e11a
commit a6d2590666
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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;