Skip to content

Commit

Permalink
[BUGFIX] allow empty groupValue and fallback to empty string as a group
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasniestroj authored and dkd-friedrich committed Feb 26, 2024
1 parent 4c563df commit 1ce5f9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ protected function parseFieldGroup(
$groupItems = new GroupItemCollection();

foreach ($rawGroupedResult->groups as $rawGroup) {
$groupValue = $rawGroup->groupValue;
$groupValue = $rawGroup->groupValue ?? '';
$groupItem = $this->buildGroupItemAndAddDocuments($resultSet->getUsedSearchRequest(), $group, $groupValue, $rawGroup);

if ($groupItem->getSearchResults()->count() >= 0) {
Expand Down

0 comments on commit 1ce5f9c

Please sign in to comment.