Skip to content

Commit

Permalink
ImportRowModifierForm: Fix removal of filter expression
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Dec 5, 2024
1 parent 4032d49 commit 55643c5
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 55643c5

Please sign in to comment.