list/hostgroups: Preserve filter when switching to grid mode

refs #3664
This commit is contained in:
Johannes Meyer 2019-04-16 13:53:03 +02:00
parent db3cc699f7
commit cd2a0fd6c5
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if (! $this->compact): ?>
<div class="sort-controls-container">
<?= $this->limiter ?>
<?= $this->sortBox ?>
<a href="<?= $this->href('monitoring/list/hostgroup-grid') ?>" class="grid-toggle-link"
<a href="<?= $this->href('monitoring/list/hostgroup-grid')->addFilter($this->filterEditor->getFilter()) ?>" class="grid-toggle-link"
title="<?= $this->translate('Toogle grid view mode') ?>">
<?= $this->icon('th-list', null, ['class' => '-active']) ?>
<?= $this->icon('th-thumb-empty', null, ['class' => '-inactive']) ?>