Fix filtered links in the tactical overview
Filter chains require parantheses to work properly.
This commit is contained in:
parent
e61cb71c17
commit
ac08fb2c3b
|
@ -55,11 +55,8 @@ class TacticalController extends Controller
|
||||||
$this->setupFilterControl($stats, null, ['host', 'service'], ['format']);
|
$this->setupFilterControl($stats, null, ['host', 'service'], ['format']);
|
||||||
$this->view->setHelperFunction('filteredUrl', function ($path, array $params) {
|
$this->view->setHelperFunction('filteredUrl', function ($path, array $params) {
|
||||||
$filter = clone $this->view->filterEditor->getFilter();
|
$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);
|
$this->handleFormatRequest($stats);
|
||||||
|
|
Loading…
Reference in New Issue