mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Fix wrong contactgroup service column and make better use of MySQL indexes
This commit is contained in:
parent
070e608236
commit
54175f98bf
@ -37,7 +37,7 @@ class ContactgroupQuery extends IdoQuery
|
||||
'services' => array(
|
||||
'service_object_id' => 'so.object_id',
|
||||
'service_host_name' => 'so.name1 COLLATE latin1_general_ci',
|
||||
'service' => 'so.name1 COLLATE latin1_general_ci',
|
||||
'service' => 'so.name2 COLLATE latin1_general_ci',
|
||||
'service_description' => 'so.name2 COLLATE latin1_general_ci',
|
||||
)
|
||||
);
|
||||
@ -96,7 +96,7 @@ class ContactgroupQuery extends IdoQuery
|
||||
{
|
||||
$scgSub = $this->db->select()->distinct()
|
||||
->from($this->prefix . 'service_contactgroups', array(
|
||||
'contactgroup_object_id', 'service_id'
|
||||
'service_id', 'contactgroup_object_id'
|
||||
));
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user