DataView\Comment: Adjust how to handle filter columns

refs #9029
This commit is contained in:
Johannes Meyer 2015-08-17 14:04:15 +02:00
parent fa1c971e51
commit 80b4d96e9f
1 changed files with 1 additions and 14 deletions

View File

@ -8,19 +8,6 @@ namespace Icinga\Module\Monitoring\DataView;
*/
class Comment extends DataView
{
/**
* {@inheritdoc}
*/
public function isValidFilterTarget($column)
{
if ($column[0] === '_'
&& preg_match('/^_(?:host|service)_/', $column)
) {
return true;
}
return parent::isValidFilterTarget($column);
}
/**
* {@inheritdoc}
*/
@ -46,7 +33,7 @@ class Comment extends DataView
/**
* {@inheritdoc}
*/
public function getFilterColumns()
public function getStaticFilterColumns()
{
return array(
'comment_author',