mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Ido/Query: small fixes
Replaced baseQuery in ContactGroupQuery, added short host/service columns to CustomvarQuery.
This commit is contained in:
parent
97c55d8dad
commit
4c76f5ab02
@ -113,7 +113,7 @@ class ContactgroupQuery extends IdoQuery
|
||||
+-------------------------+-------------+------------+------------------------+
|
||||
*/
|
||||
|
||||
$this->baseQuery->distinct()->join(
|
||||
$this->select->distinct()->join(
|
||||
array('scg' => $this->prefix . 'service_contactgroups'),
|
||||
// array('scg' => $scgSub),
|
||||
'scg.contactgroup_object_id = cg.contactgroup_object_id',
|
||||
|
@ -10,8 +10,10 @@ class CustomvarQuery extends IdoQuery
|
||||
'varvalue' => 'cvs.varvalue',
|
||||
),
|
||||
'objects' => array(
|
||||
'host' => 'cvo.name1 COLLATE latin1_general_ci',
|
||||
'host_name' => 'cvo.name1 COLLATE latin1_general_ci',
|
||||
'service_host_name' => 'cvo.name1 COLLATE latin1_general_ci',
|
||||
'service' => 'cvo.name2 COLLATE latin1_general_ci',
|
||||
'service_description' => 'cvo.name2 COLLATE latin1_general_ci',
|
||||
'contact_name' => 'cvo.name1 COLLATE latin1_general_ci',
|
||||
'object_type' => "CASE cvo.objecttype_id WHEN 1 THEN 'host' WHEN 2 THEN 'service' WHEN 10 THEN 'contact' ELSE 'invalid' END",
|
||||
|
Loading…
x
Reference in New Issue
Block a user