diff --git a/application/tables/IcingaServiceSetTable.php b/application/tables/IcingaServiceSetTable.php index 64dccd5f..c3c3a66b 100644 --- a/application/tables/IcingaServiceSetTable.php +++ b/application/tables/IcingaServiceSetTable.php @@ -13,13 +13,13 @@ class IcingaServiceSetTable extends IcingaObjectTable public function getColumns() { return array( - 'id' => 'sset.id', - 'name' => 'sset.object_name', - 'object_type' => 'sset.object_type', - 'assign_filter' => 'sset.assign_filter', - 'description' => 'sset.description', - 'count_hosts' => 'count(ssetobj.id)', - 'count_services' => 'count(s.id)', + 'id' => 'sset.id', + 'name' => 'sset.object_name', + 'object_type' => 'sset.object_type', + 'assign_filter' => 'sset.assign_filter', + 'description' => 'sset.description', + 'count_hosts' => 'count(distinct ssetobj.id)', + 'count_services' => 'count(distinct s.id)', ); } diff --git a/library/Director/Web/Table/QuickTable.php b/library/Director/Web/Table/QuickTable.php index 43cd3f36..d1f9b038 100644 --- a/library/Director/Web/Table/QuickTable.php +++ b/library/Director/Web/Table/QuickTable.php @@ -16,6 +16,7 @@ use Icinga\Module\Director\Db; use Icinga\Module\Director\PlainObjectRenderer; use Icinga\Web\Request; use Icinga\Web\Url; +use Icinga\Web\View; use Icinga\Web\Widget; use Icinga\Web\Widget\Paginator; use stdClass; @@ -314,6 +315,9 @@ abstract class QuickTable implements Paginatable return $htm . "\n\n"; } + /** + * @return View + */ protected function view() { if ($this->view === null) {