DataView\Servicedowntime: Adjust how to handle filter columns
refs #9029
This commit is contained in:
parent
66d5513517
commit
833e177666
|
@ -36,7 +36,7 @@ class Servicedowntime extends DataView
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getFilterColumns()
|
||||
public function getStaticFilterColumns()
|
||||
{
|
||||
return array(
|
||||
'host', 'host_alias',
|
||||
|
@ -45,17 +45,4 @@ class Servicedowntime extends DataView
|
|||
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isValidFilterTarget($column)
|
||||
{
|
||||
if ($column[0] === '_'
|
||||
&& preg_match('/^_(?:host|service)_/', $column)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return parent::isValidFilterTarget($column);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue