From 928185a144bf7a36f814b20f50ff19aa99dbddb8 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 10 Nov 2017 10:17:32 +0100 Subject: [PATCH] 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 --- modules/monitoring/application/controllers/ListController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index c8d3a9ebf..9d64522e6 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -106,7 +106,6 @@ class ListController extends Controller $this->applyRestriction('monitoring/filter/objects', $stats); $summary = $hosts->getQuery()->queryServiceProblemSummary(); - $this->applyRestriction('monitoring/filter/objects', $summary); $this->view->hosts = $hosts; $this->view->stats = $stats;