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