parent
4dce29e040
commit
9f8de333ec
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue