IcingaHostTable: fix row count for filtered views

fixes #11661
This commit is contained in:
Thomas Gelf 2016-04-22 17:03:49 +02:00
parent 51f8591a43
commit bb6e3f58a5
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ class IcingaHostTable extends IcingaObjectTable
$db = $this->connection()->getConnection();
$sub = clone($this->getBaseQuery());
$sub->columns($this->getColumns());
$this->applyFiltersToQuery($sub);
$query = $db->select()->from(
array('sub' => $sub),
'COUNT(*)'