mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Widget\FilterEditor: fix root element stripping
This commit is contained in:
parent
c6ffdb3862
commit
eb823c4045
@ -218,7 +218,12 @@ class FilterEditor extends AbstractWidget
|
||||
|
||||
if ($strip) {
|
||||
$redirect = $this->url();
|
||||
$filter->replaceById($strip, $filter->getById($strip . '-1'));
|
||||
$subId = $strip . '-1';
|
||||
if ($filter->getId() === $strip) {
|
||||
$filter = $filter->getById($strip . '-1');
|
||||
} else {
|
||||
$filter->replaceById($strip, $filter->getById($strip . '-1'));
|
||||
}
|
||||
$redirect->setQueryString($filter->toQueryString())->getParams()->add('modifyFilter');
|
||||
$this->redirectNow($redirect->addParams($preserve));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user