commit
bebff5b83e
|
@ -27,8 +27,8 @@ class Monitoring_HostsController extends Controller
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$hostList = new HostList($this->backend);
|
$hostList = new HostList($this->backend);
|
||||||
$hostList->setFilter(Filter::fromQueryString((string) $this->params));
|
|
||||||
$this->applyRestriction('monitoring/filter/objects', $hostList);
|
$this->applyRestriction('monitoring/filter/objects', $hostList);
|
||||||
|
$hostList->addFilter(Filter::fromQueryString((string) $this->params));
|
||||||
$this->hostList = $hostList;
|
$this->hostList = $hostList;
|
||||||
$this->getTabs()->add(
|
$this->getTabs()->add(
|
||||||
'show',
|
'show',
|
||||||
|
|
|
@ -27,10 +27,10 @@ class Monitoring_ServicesController extends Controller
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$serviceList = new ServiceList($this->backend);
|
$serviceList = new ServiceList($this->backend);
|
||||||
$serviceList->setFilter(Filter::fromQueryString(
|
$this->applyRestriction('monitoring/filter/objects', $serviceList);
|
||||||
|
$serviceList->addFilter(Filter::fromQueryString(
|
||||||
(string) $this->params->without(array('service_problem', 'service_handled', 'view'))
|
(string) $this->params->without(array('service_problem', 'service_handled', 'view'))
|
||||||
));
|
));
|
||||||
$this->applyRestriction('monitoring/filter/objects', $serviceList);
|
|
||||||
$this->serviceList = $serviceList;
|
$this->serviceList = $serviceList;
|
||||||
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/services');
|
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/services');
|
||||||
$this->getTabs()->add(
|
$this->getTabs()->add(
|
||||||
|
|
|
@ -83,7 +83,7 @@ abstract class ObjectList implements Countable, IteratorAggregate, Filterable
|
||||||
public function getFilter()
|
public function getFilter()
|
||||||
{
|
{
|
||||||
if ($this->filter === null) {
|
if ($this->filter === null) {
|
||||||
$this->filter = Filter::matchAny();
|
$this->filter = Filter::matchAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->filter;
|
return $this->filter;
|
||||||
|
|
Loading…
Reference in New Issue