mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
IcingaServiceSetTable: Fix counter to show distinct counted values
refs #12891
This commit is contained in:
parent
01ef8cb4ba
commit
ae70de9755
@ -18,8 +18,8 @@ class IcingaServiceSetTable extends IcingaObjectTable
|
||||
'object_type' => 'sset.object_type',
|
||||
'assign_filter' => 'sset.assign_filter',
|
||||
'description' => 'sset.description',
|
||||
'count_hosts' => 'count(ssetobj.id)',
|
||||
'count_services' => 'count(s.id)',
|
||||
'count_hosts' => 'count(distinct ssetobj.id)',
|
||||
'count_services' => 'count(distinct s.id)',
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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 . "</tbody>\n</table>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return View
|
||||
*/
|
||||
protected function view()
|
||||
{
|
||||
if ($this->view === null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user