ImportRowModifierForm: Fix removal of filter expression (#2939)

fixes #2922, #2864
This commit is contained in:
Eric Lippmann 2024-12-12 10:54:40 +01:00 committed by GitHub
commit e37f802cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}
}