IcingaServiceSetTable: remove misleading host...

...count
This commit is contained in:
Thomas Gelf 2017-02-17 10:13:34 +01:00
parent 4860082d4b
commit 736244e9e9
1 changed files with 5 additions and 4 deletions

View File

@ -2,9 +2,9 @@
namespace Icinga\Module\Director\Tables;
use Icinga\Module\Director\Web\Table\IcingaObjectTable;
use Icinga\Module\Director\Web\Table\QuickTable;
class IcingaServiceSetTable extends IcingaObjectTable
class IcingaServiceSetTable extends QuickTable
{
protected $searchColumns = array(
'name',
@ -18,7 +18,8 @@ class IcingaServiceSetTable extends IcingaObjectTable
'object_type' => 'sset.object_type',
'assign_filter' => 'sset.assign_filter',
'description' => 'sset.description',
'count_hosts' => 'count(distinct ssetobj.id)',
// Disabled for now, misleading
// 'count_hosts' => 'count(distinct ssetobj.id)',
'count_services' => 'count(distinct s.id)',
);
}
@ -40,7 +41,7 @@ class IcingaServiceSetTable extends IcingaObjectTable
return array(
'name' => $view->translate('Service set'),
'count_services' => $view->translate('# Services'),
'count_hosts' => $view->translate('# Hosts'),
// 'count_hosts' => $view->translate('# Hosts'),
);
}