mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ImportRowModifierForm: Fix removal of filter expression (#2939)
fixes #2922, #2864
This commit is contained in:
commit
e37f802cf9
@ -214,4 +214,13 @@ class ImportRowModifierForm extends DirectorObjectForm
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function onSuccess()
|
||||
{
|
||||
if ($this->getValue('use_filter') === 'n') {
|
||||
$this->getObject()->set('filter_expression', null);
|
||||
}
|
||||
|
||||
parent::onSuccess();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user