Comment overview: Add support for quick searches

fixes #9502
This commit is contained in:
Johannes Meyer 2015-06-25 12:59:57 +02:00
parent e3b432d463
commit 8b4fb89a4b
1 changed files with 9 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Comment extends DataView
public function getFilterColumns() public function getFilterColumns()
{ {
return array( return array(
'comment_author ', 'comment_author',
'host', 'host_alias', 'host', 'host_alias',
'hostgroup', 'hostgroup_alias', 'hostgroup_name', 'hostgroup', 'hostgroup_alias', 'hostgroup_name',
'service', 'service',
@ -57,6 +57,14 @@ class Comment extends DataView
); );
} }
/**
* {@inheritdoc}
*/
public function getSearchColumns()
{
return array('host', 'host_display_name', 'service', 'service_display_name', 'comment_author');
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */