parent
03a80b3e44
commit
a4422c5d94
|
@ -31,7 +31,7 @@ class Hostcomment extends DataView
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getFilterColumns()
|
public function getStaticFilterColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'host', 'host_alias',
|
'host', 'host_alias',
|
||||||
|
@ -40,17 +40,4 @@ class Hostcomment extends DataView
|
||||||
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
'servicegroup', 'servicegroup_alias', 'servicegroup_name'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function isValidFilterTarget($column)
|
|
||||||
{
|
|
||||||
if ($column[0] === '_'
|
|
||||||
&& preg_match('/^_(?:host|service)_/', $column)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return parent::isValidFilterTarget($column);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue