DataView\Servicestatussummary: Adjust how to handle filter columns
refs #9029
This commit is contained in:
parent
fe9c7a613c
commit
e20f78bba9
|
@ -32,7 +32,7 @@ class Servicestatussummary extends DataView
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getFilterColumns()
|
||||
public function getStaticFilterColumns()
|
||||
{
|
||||
return array(
|
||||
'host', 'host_alias', 'host_display_name', 'host_name',
|
||||
|
@ -41,18 +41,4 @@ class Servicestatussummary extends DataView
|
|||
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isValidFilterTarget($column)
|
||||
{
|
||||
if ($column[0] === '_'
|
||||
&& preg_match('/^_(?:host|service)_/', $column)
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
return in_array($column, $this->getFilterColumns());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue