Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Oct 22, 2024
1 parent 31c0f5e commit 67a3dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions databox/api/src/Elasticsearch/Facet/CollectionFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ private function normalizeCollectionPath(string $path): ?string
$pColl = $pColl->getParent();
}

if (empty($levels)) {
return null;
}

return implode(' / ', array_reverse($levels));
}
}

0 comments on commit 67a3dec

Please sign in to comment.