Fix wrong unhandled services count in host views when restrictions are used

The query for fetching the unhandled services count utilises the hosts query as subquery.
Restrictions are applied to both the hosts query and the query for the unhandled services count.
This leads to wrong results since the restrictions are already in place for the unhandled services count because we're using the hosts query as subquery.

refs #2822
This commit is contained in:
Eric Lippmann 2017-11-10 10:17:32 +01:00
parent fd1ee57a93
commit 928185a144
1 changed files with 0 additions and 1 deletions

View File

@ -106,7 +106,6 @@ class ListController extends Controller
$this->applyRestriction('monitoring/filter/objects', $stats); $this->applyRestriction('monitoring/filter/objects', $stats);
$summary = $hosts->getQuery()->queryServiceProblemSummary(); $summary = $hosts->getQuery()->queryServiceProblemSummary();
$this->applyRestriction('monitoring/filter/objects', $summary);
$this->view->hosts = $hosts; $this->view->hosts = $hosts;
$this->view->stats = $stats; $this->view->stats = $stats;