HostServiceTables: drop useless group()

fixes #1509
This commit is contained in:
Thomas Gelf 2018-06-01 14:55:14 +02:00
parent 32a1352ac9
commit c401f5356c
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class IcingaHostAppliedServicesTable extends SimpleQueryBasedTable
['hsb' => 'icinga_host_service_blacklist'],
$db->quoteInto('s.id = hsb.service_id AND hsb.host_id = ?', $this->host->get('id')),
[]
)->group('s.id')->where('object_type = ? AND assign_filter IS NOT NULL', 'apply');
)->where('object_type = ? AND assign_filter IS NOT NULL', 'apply');
return $db->fetchAll($query);
}

View File

@ -209,7 +209,7 @@ class IcingaServiceSetServiceTable extends ZfQueryBasedTable
$this->affectedHost->get('id')
),
[]
)->group('s.id')->columns([
)->columns([
'blacklisted' => "CASE WHEN hsb.service_id IS NULL THEN 'n' ELSE 'y' END",
]);
} else {