mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
FilterEditor: use new id helper in selectSign
This commit is contained in:
parent
934a0a4914
commit
e6ded2eb3c
@ -337,9 +337,8 @@ class FilterEditor extends AbstractWidget
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function selectSign($filter)
|
protected function selectSign(Filter $filter = null)
|
||||||
{
|
{
|
||||||
$name = 'sign_' . $filter->getId();
|
|
||||||
$signs = array(
|
$signs = array(
|
||||||
'=' => '=',
|
'=' => '=',
|
||||||
'!=' => '!=',
|
'!=' => '!=',
|
||||||
@ -350,9 +349,9 @@ class FilterEditor extends AbstractWidget
|
|||||||
);
|
);
|
||||||
|
|
||||||
return $this->select(
|
return $this->select(
|
||||||
$name,
|
$this->elementId('sign', $filter),
|
||||||
$signs,
|
$signs,
|
||||||
$filter->getSign(),
|
$filter === null ? null : $filter->getSign(),
|
||||||
array('style' => 'width: 4em')
|
array('style' => 'width: 4em')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user