From 245e4b26c0aa9e263f47f4a0acd58e81434831a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Jania?= Date: Wed, 10 Jan 2024 11:09:39 +0100 Subject: [PATCH] [BUGFIX] Don't trim value if it's null (#145) * [BUGFIX] Don't trim value if it's null * fix spacing --------- Co-authored-by: JiaJia Ji --- src/FilterService/FilterType/SelectFromMultiSelect.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterService/FilterType/SelectFromMultiSelect.php b/src/FilterService/FilterType/SelectFromMultiSelect.php index 7769e3d2b..0b17013fa 100644 --- a/src/FilterService/FilterType/SelectFromMultiSelect.php +++ b/src/FilterService/FilterType/SelectFromMultiSelect.php @@ -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();