Merge branch 'bugfix/multiselect-restrictions-9574'

fixes #9574
This commit is contained in:
Eric Lippmann 2015-08-04 16:47:15 +02:00
commit bebff5b83e
3 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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(

View File

@ -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;