mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Controller: Allow to pass a filter to method filter()
It's not always the request's filter that should be used.
This commit is contained in:
parent
076eafb3e3
commit
f28b3c6575
1 changed files with 2 additions and 2 deletions
|
|
@ -317,12 +317,12 @@ class Controller extends CompatController
|
|||
return parent::addContent($content);
|
||||
}
|
||||
|
||||
public function filter(Query $query)
|
||||
public function filter(Query $query, Filter $filter = null)
|
||||
{
|
||||
$this->applyMonitoringRestriction($query);
|
||||
|
||||
FilterProcessor::apply(
|
||||
$this->getFilter(),
|
||||
$filter ?: $this->getFilter(),
|
||||
$query
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue