Skip to content

Commit

Permalink
ImportRowModifierForm: Fix removal of filter expression (#2939)
Browse files Browse the repository at this point in the history
fixes #2922, #2864
  • Loading branch information
lippserd authored Dec 12, 2024
2 parents d205415 + f4692d7 commit e37f802
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/forms/ImportRowModifierForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,13 @@ public function setSource(ImportSource $source)

return $this;
}

public function onSuccess()
{
if ($this->getValue('use_filter') === 'n') {
$this->getObject()->set('filter_expression', null);
}

parent::onSuccess();
}
}

0 comments on commit e37f802

Please sign in to comment.