Skip to content

Commit

Permalink
patch filter issue with null value
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Jan 1, 2023
1 parent 68287ad commit 7d2f808
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ public function filterValue($field)
}

foreach ($this->filters as $filter) {
$realValue = $filter->filter($realValue, $name, $type);
if (null !== $realValue) {
$realValue = $filter->filter($realValue, $name, $type);
}
}

if (($field instanceof Element\AbstractElement) && !($field instanceof Element\Input\Checkbox) &&
Expand Down

0 comments on commit 7d2f808

Please sign in to comment.