From a4422c5d94b9b61e6ebc360977f80e326940af9b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 17 Aug 2015 14:05:07 +0200 Subject: [PATCH] DataView\Hostcomment: Adjust how to handle filter columns refs #9029 --- .../library/Monitoring/DataView/Hostcomment.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Hostcomment.php b/modules/monitoring/library/Monitoring/DataView/Hostcomment.php index d1afbdd74..b20f00a29 100644 --- a/modules/monitoring/library/Monitoring/DataView/Hostcomment.php +++ b/modules/monitoring/library/Monitoring/DataView/Hostcomment.php @@ -31,7 +31,7 @@ class Hostcomment extends DataView /** * {@inheritdoc} */ - public function getFilterColumns() + public function getStaticFilterColumns() { return array( 'host', 'host_alias', @@ -40,17 +40,4 @@ class Hostcomment 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); - } }