ImportRowModifierForm: Fix removal of filter expression

This commit is contained in:
raviks789 2024-12-05 11:48:05 +01:00 committed by Eric Lippmann
parent d205415f1b
commit f4692d7ab4

View File

@ -214,4 +214,13 @@ class ImportRowModifierForm extends DirectorObjectForm
return $this; return $this;
} }
public function onSuccess()
{
if ($this->getValue('use_filter') === 'n') {
$this->getObject()->set('filter_expression', null);
}
parent::onSuccess();
}
} }