mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
FilterEditor: make constructor parameter optional
...and use new setters
This commit is contained in:
parent
c5ca3b633c
commit
44d5ee8fa0
@ -42,9 +42,11 @@ class FilterEditor extends AbstractWidget
|
|||||||
*/
|
*/
|
||||||
public function __construct($props)
|
public function __construct($props)
|
||||||
{
|
{
|
||||||
$this->filter = $props['filter'];
|
if (array_key_exists('filter', $props)) {
|
||||||
|
$this->setFilter($props['filter']);
|
||||||
|
}
|
||||||
if (array_key_exists('query', $props)) {
|
if (array_key_exists('query', $props)) {
|
||||||
$this->query = $props['query'];
|
$this->setQuery($props['query']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user