From 9f8de333ecce65f88959950090d239ba1b724c7f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 17 Aug 2015 14:05:24 +0200 Subject: [PATCH] DataView\Hostgroup: Adjust how to handle filter columns refs #9029 --- .../library/Monitoring/DataView/Hostgroup.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/modules/monitoring/library/Monitoring/DataView/Hostgroup.php b/modules/monitoring/library/Monitoring/DataView/Hostgroup.php index ed4a8bd96..66cfee189 100644 --- a/modules/monitoring/library/Monitoring/DataView/Hostgroup.php +++ b/modules/monitoring/library/Monitoring/DataView/Hostgroup.php @@ -22,7 +22,7 @@ class Hostgroup extends DataView /** * {@inheritdoc} */ - public function getFilterColumns() + public function getStaticFilterColumns() { return array( 'host', 'host_alias', 'host_display_name', 'host_name', @@ -31,18 +31,4 @@ class Hostgroup extends DataView 'servicegroup', 'servicegroup_alias', 'servicegroup_name' ); } - - /** - * {@inheritdoc} - */ - public function isValidFilterTarget($column) - { - if ($column[0] === '_' - && preg_match('/^_(?:host|service)_/', $column) - ) { - return true; - } else { - return parent::isValidFilterTarget($column); - } - } }