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 committed Dec 15, 2023
1 parent 2e99b71 commit 3274471
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 3274471

Please sign in to comment.