DataView\Servicecomment: Adjust how to handle filter columns

refs #9029
This commit is contained in:
Johannes Meyer 2015-08-17 14:06:05 +02:00
parent 5d2c389220
commit 66d5513517
1 changed files with 1 additions and 14 deletions

View File

@ -34,7 +34,7 @@ class Servicecomment extends DataView
/**
* {@inheritdoc}
*/
public function getFilterColumns()
public function getStaticFilterColumns()
{
return array(
'host', 'host_alias',
@ -43,17 +43,4 @@ class Servicecomment 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);
}
}