diff --git a/library/Icinga/Web/Controller.php b/library/Icinga/Web/Controller.php index b31b4fb61..f15e4913b 100644 --- a/library/Icinga/Web/Controller.php +++ b/library/Icinga/Web/Controller.php @@ -209,6 +209,7 @@ class Controller extends ModuleActionController ); $editor = Widget::create('filterEditor'); + /** @var \Icinga\Web\Widget\FilterEditor $editor */ call_user_func_array( array($editor, 'preserveParams'), array_merge($defaultPreservedParams, $preserveParams ?: array()) @@ -221,10 +222,12 @@ class Controller extends ModuleActionController ->setSearchColumns($searchColumns) ->handleRequest($this->getRequest()); - if (! $this->view->compact) { - $this->view->filterEditor = $editor; + if ($this->view->compact) { + $editor->setVisible(false); } + $this->view->filterEditor = $editor; + return $this; } }