Fix filtered links in the tactical overview

Filter chains require parantheses to work properly.
This commit is contained in:
Eric Lippmann 2019-07-26 14:35:50 +02:00 committed by Johannes Meyer
parent e61cb71c17
commit ac08fb2c3b
1 changed files with 1 additions and 4 deletions

View File

@ -55,11 +55,8 @@ class TacticalController extends Controller
$this->setupFilterControl($stats, null, ['host', 'service'], ['format']);
$this->view->setHelperFunction('filteredUrl', function ($path, array $params) {
$filter = clone $this->view->filterEditor->getFilter();
foreach ($params as $column => $value) {
$filter = $filter->andFilter($filter->where($column, $value));
}
return $this->view->url($path)->setQueryString($filter->toQueryString());
return $this->view->url($path)->setParams($params)->addFilter($filter);
});
$this->handleFormatRequest($stats);