DataView\Hostgroupsummary: Adjust how to handle filter columns
refs #9029
This commit is contained in:
parent
9f8de333ec
commit
25acebab77
|
@ -44,7 +44,7 @@ class Hostgroupsummary extends DataView
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getFilterColumns()
|
||||
public function getStaticFilterColumns()
|
||||
{
|
||||
return array(
|
||||
'hosts_severity',
|
||||
|
@ -95,18 +95,4 @@ class Hostgroupsummary extends DataView
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isValidFilterTarget($column)
|
||||
{
|
||||
if ($column[0] === '_'
|
||||
&& preg_match('/^_(?:host|service)_/', $column)
|
||||
) {
|
||||
return true;
|
||||
} else {
|
||||
return parent::isValidFilterTarget($column);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue