Skip to content

Commit

Permalink
[BUGFIX] Don't trim value if it's null (#145)
Browse files Browse the repository at this point in the history
* [BUGFIX] Don't trim value if it's null

* fix spacing

---------

Co-authored-by: JiaJia Ji <kingjia90@gmail.com>
  • Loading branch information
80Quattro and kingjia90 authored Jan 10, 2024
1 parent 13a2388 commit 7831d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FilterService/FilterType/SelectFromMultiSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public function addCondition(AbstractFilterDefinitionType $filterDefinition, Pro
$value = $preSelect;
}

$value = trim($value);
if ($value) {
$value = trim($value);
}

$currentFilter[$field] = $value;
$db = Db::get();
Expand Down

0 comments on commit 7831d06

Please sign in to comment.