parent
32a1352ac9
commit
c401f5356c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue