Permit to filter hosts and services by hostgroup_name and servicegroup_name

refs #8613
This commit is contained in:
Johannes Meyer 2015-04-09 11:41:56 +02:00
parent 7d984665d6
commit f7550f55c1
2 changed files with 10 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class HostStatus extends DataView
public function getFilterColumns()
{
return array('host', 'hostgroup', 'service', 'servicegroup');
return array('host', 'hostgroup', 'hostgroup_name', 'service', 'servicegroup', 'servicegroup_name');
}
public function isValidFilterTarget($column)

View File

@ -163,7 +163,15 @@ class ServiceStatus extends DataView
public function getFilterColumns()
{
return array('host', 'hostgroup', 'service', 'service_host', 'servicegroup');
return array(
'host',
'hostgroup',
'hostgroup_name',
'service',
'service_host',
'servicegroup',
'servicegroup_name'
);
}
public function isValidFilterTarget($column)