Skip to content

Commit 4d368a7

Browse files
authored
fix: boolean multiselect pass only values (#355)
1 parent 058620a commit 4d368a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SearchIndexAdapter/DefaultSearch/Search/Modifier/Filter/FieldTypeFilters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getBooleanMultiSelectFilter(
129129
}
130130

131131
$hasNull = in_array(null, $filter->getValues(), true);
132-
$nonNullValues = array_filter($filter->getValues(), static fn ($v) => $v !== null);
132+
$nonNullValues = array_values(array_filter($filter->getValues(), static fn ($v) => $v !== null));
133133

134134
return match (true) {
135135
$hasNull && $nonNullValues !== [] => new MultiBoolQuery($fieldName, $nonNullValues),

0 commit comments

Comments
 (0)