mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
monitoring: Add missing restrictable filter columns to the host status summary data view
refs #9009
This commit is contained in:
parent
f2f3fe2c07
commit
fc2a50a9ff
@ -30,7 +30,7 @@ class Hoststatussummary extends DataView
|
|||||||
public function getFilterColumns()
|
public function getFilterColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'host', 'host_alias', 'host_name',
|
'host', 'host_alias', 'host_display_name', 'host_name',
|
||||||
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
'hostgroup', 'hostgroup_alias', 'hostgroup_name',
|
||||||
'service', 'service_description', 'service_display_name',
|
'service', 'service_description', 'service_display_name',
|
||||||
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
||||||
@ -42,6 +42,12 @@ class Hoststatussummary extends DataView
|
|||||||
*/
|
*/
|
||||||
public function isValidFilterTarget($column)
|
public function isValidFilterTarget($column)
|
||||||
{
|
{
|
||||||
return in_array($column, $this->getFilterColumns());
|
if ($column[0] === '_'
|
||||||
|
&& preg_match('/^_(?:host|service)_/', $column)
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return in_array($column, $this->getFilterColumns());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user