Skip to content

Commit

Permalink
Merge branch 'refs/heads/1.1' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp committed Aug 27, 2024
2 parents 2202858 + e7e7924 commit 5e105cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FilterService/FilterType/ElasticSearch/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public function addCondition(AbstractFilterDefinitionType $filterDefinition, Pro
$value = $preSelect;
}

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

$currentFilter[$field] = $value;

if (!empty($value)) {
Expand Down

0 comments on commit 5e105cf

Please sign in to comment.