diff --git a/src/FilterService/FilterType/ElasticSearch/SelectCategory.php b/src/FilterService/FilterType/ElasticSearch/SelectCategory.php index 54d53ca14..b7ae82d14 100644 --- a/src/FilterService/FilterType/ElasticSearch/SelectCategory.php +++ b/src/FilterService/FilterType/ElasticSearch/SelectCategory.php @@ -70,7 +70,7 @@ public function addCondition(AbstractFilterDefinitionType $filterDefinition, Pro } elseif (empty($value) && !$isReload && method_exists($filterDefinition, 'getPreSelect')) { $value = $filterDefinition->getPreSelect(); if ($value instanceof ElementInterface) { - $value = $value->getId(); + $value = (string)$value->getId(); } }