Merge pull request #4018 from Icinga/fix/invalid-filter-after-scheduling-multiple-checks-4001

hosts/services: Remove `*_active_checks_enabled` from a redirect's filter
This commit is contained in:
Johannes Meyer 2019-12-05 16:11:35 +01:00 committed by GitHub
commit d2596025ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;