From 80b4d96e9f27d1edc81a44e0bbe430e095cc65c4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 17 Aug 2015 14:04:15 +0200 Subject: [PATCH] DataView\Comment: Adjust how to handle filter columns refs #9029 --- .../library/Monitoring/DataView/Comment.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Comment.php b/modules/monitoring/library/Monitoring/DataView/Comment.php index 9b3be8061..528d2aef3 100644 --- a/modules/monitoring/library/Monitoring/DataView/Comment.php +++ b/modules/monitoring/library/Monitoring/DataView/Comment.php @@ -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',