From 8b4fb89a4b5328630c9bce6157b8cbbf5c2b9ee1 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 25 Jun 2015 12:59:57 +0200 Subject: [PATCH] Comment overview: Add support for quick searches fixes #9502 --- .../monitoring/library/Monitoring/DataView/Comment.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Comment.php b/modules/monitoring/library/Monitoring/DataView/Comment.php index e1beaabf8..18d518bd3 100644 --- a/modules/monitoring/library/Monitoring/DataView/Comment.php +++ b/modules/monitoring/library/Monitoring/DataView/Comment.php @@ -49,7 +49,7 @@ class Comment extends DataView public function getFilterColumns() { return array( - 'comment_author ', + 'comment_author', 'host', 'host_alias', 'hostgroup', 'hostgroup_alias', 'hostgroup_name', '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} */