DataView\Contact: Adjust how to handle filter columns

refs #9029
This commit is contained in:
Johannes Meyer 2015-08-17 14:04:33 +02:00
parent 37b0b8bc84
commit c3cd63368b
1 changed files with 1 additions and 13 deletions

View File

@ -5,18 +5,6 @@ namespace Icinga\Module\Monitoring\DataView;
class Contact extends DataView
{
/**
* {@inheritdoc}
*/
public function isValidFilterTarget($column)
{
if ($column[0] === '_' && preg_match('/^_(?:host|service)_/', $column)) {
return true;
}
return parent::isValidFilterTarget($column);
}
/**
* {@inheritdoc}
*/
@ -63,7 +51,7 @@ class Contact extends DataView
/**
* {@inheritdoc}
*/
public function getFilterColumns()
public function getStaticFilterColumns()
{
return array(
'contact',