Skip to content

Commit

Permalink
[BUGFIX] Don't trim value if it's null
Browse files Browse the repository at this point in the history
  • Loading branch information
80Quattro authored and kingjia90 committed Jan 10, 2024
1 parent ef898cf commit 5ebb9f8
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 5ebb9f8

Please sign in to comment.