parent
fa1c971e51
commit
80b4d96e9f
|
@ -8,19 +8,6 @@ namespace Icinga\Module\Monitoring\DataView;
|
||||||
*/
|
*/
|
||||||
class Comment extends DataView
|
class Comment extends DataView
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function isValidFilterTarget($column)
|
|
||||||
{
|
|
||||||
if ($column[0] === '_'
|
|
||||||
&& preg_match('/^_(?:host|service)_/', $column)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return parent::isValidFilterTarget($column);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -46,7 +33,7 @@ class Comment extends DataView
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getFilterColumns()
|
public function getStaticFilterColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'comment_author',
|
'comment_author',
|
||||||
|
|
Loading…
Reference in New Issue