Skip to content

Commit

Permalink
[Bugfix:BP:11-5] routeenhancer with empty filters
Browse files Browse the repository at this point in the history
Skips empty filters so no error gets thrown when using search & facets
  • Loading branch information
Nicola-Widmer authored and dkd-kaehm committed Dec 2, 2021
1 parent 9535750 commit 578e015
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Routing/RoutingService.php
Expand Up @@ -617,6 +617,9 @@ public function inflateQueryParameter(array $queryParams = []): array
foreach ($queryParams[$this->getPluginNamespace()]['filter'] as $set) {
$separator = $this->detectFacetAndValueSeparator((string)$set);
[$facetName, $facetValuesString] = explode($separator, $set, 2);
if ($facetValuesString == null) {
continue;
}
$facetValues = explode($this->urlFacetQueryService->getMultiValueSeparator(), $facetValuesString);

/**
Expand Down

0 comments on commit 578e015

Please sign in to comment.