mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Don't hide the filter editor from the view if the view is compact
refs #10778
This commit is contained in:
parent
d8b14cb772
commit
8433bf1fc1
@ -209,6 +209,7 @@ class Controller extends ModuleActionController
|
|||||||
);
|
);
|
||||||
|
|
||||||
$editor = Widget::create('filterEditor');
|
$editor = Widget::create('filterEditor');
|
||||||
|
/** @var \Icinga\Web\Widget\FilterEditor $editor */
|
||||||
call_user_func_array(
|
call_user_func_array(
|
||||||
array($editor, 'preserveParams'),
|
array($editor, 'preserveParams'),
|
||||||
array_merge($defaultPreservedParams, $preserveParams ?: array())
|
array_merge($defaultPreservedParams, $preserveParams ?: array())
|
||||||
@ -221,10 +222,12 @@ class Controller extends ModuleActionController
|
|||||||
->setSearchColumns($searchColumns)
|
->setSearchColumns($searchColumns)
|
||||||
->handleRequest($this->getRequest());
|
->handleRequest($this->getRequest());
|
||||||
|
|
||||||
if (! $this->view->compact) {
|
if ($this->view->compact) {
|
||||||
$this->view->filterEditor = $editor;
|
$editor->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->view->filterEditor = $editor;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user