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:
parent
fd1ee57a93
commit
928185a144
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue