Merge pull request #3074 from Icinga/fix/search-for-host-and-servicegroups

Allow to search for host and servicegroups by their case insensitive …
This commit is contained in:
lippserd 2017-11-08 15:42:07 +01:00 committed by GitHub
commit 71b1671b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ class HostgroupQuery extends IdoQuery
protected $columnMap = array(
'hostgroups' => array(
'hostgroup' => 'hgo.name1 COLLATE latin1_general_ci',
'hostgroup_alias' => 'hg.alias COLLATE latin1_general_ci',
'hostgroup_name' => 'hgo.name1'
),

View File

@ -26,6 +26,7 @@ class ServicegroupQuery extends IdoQuery
'service_description' => 'so.name2'
),
'servicegroups' => array(
'servicegroup' => 'sgo.name1 COLLATE latin1_general_ci',
'servicegroup_alias' => 'sg.alias COLLATE latin1_general_ci',
'servicegroup_name' => 'sgo.name1'
),

View File

@ -34,7 +34,7 @@ class Hostgroupsummary extends DataView
public function getSearchColumns()
{
return array('hostgroup_name', 'hostgroup_alias');
return array('hostgroup', 'hostgroup_alias');
}
public function getSortRules()

View File

@ -27,7 +27,7 @@ class Servicegroupsummary extends DataView
public function getSearchColumns()
{
return array('servicegroup_name', 'servicegroup_alias');
return array('servicegroup', 'servicegroup_alias');
}
public function getSortRules()