Skip to content

Commit e37f802

Browse files
authored
ImportRowModifierForm: Fix removal of filter expression (#2939)
fixes #2922, #2864
2 parents d205415 + f4692d7 commit e37f802

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

application/forms/ImportRowModifierForm.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,13 @@ public function setSource(ImportSource $source)
214214

215215
return $this;
216216
}
217+
218+
public function onSuccess()
219+
{
220+
if ($this->getValue('use_filter') === 'n') {
221+
$this->getObject()->set('filter_expression', null);
222+
}
223+
224+
parent::onSuccess();
225+
}
217226
}

0 commit comments

Comments
 (0)