Skip to content

Commit

Permalink
fix: Always index all documents folder names to Solr, not only visibl…
Browse files Browse the repository at this point in the history
…e ones
  • Loading branch information
ambroisemaupate committed Sep 6, 2022
1 parent 968610d commit c76fffc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public function onIndexing(DocumentTranslationIndexingEvent $event)
$folderNames = [];
/** @var Folder $folder */
foreach ($folders as $folder) {
if ($folder->isVisible() && $fTrans = $folder->getTranslatedFoldersByTranslation($translation)->first()) {
$folderNames[] = $folder->getFolderName();
if ($fTrans = $folder->getTranslatedFoldersByTranslation($translation)->first()) {
$folderNames[] = $fTrans->getName();
}
}
Expand Down

0 comments on commit c76fffc

Please sign in to comment.