Skip to content

Commit

Permalink
fix: respect language when indexing documents
Browse files Browse the repository at this point in the history
  • Loading branch information
runepiper committed Mar 6, 2024
1 parent 53d42b7 commit a461a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static function createFromTSFE(TypoScriptFrontendController $tsfe): Docum
$document->setTitle($tsfe->page['title'] ?? '');
$document->setUrl($url);
$document->setCrdate($tsfe->page['crdate']);
$document->setLanguageId(0);
$document->setLanguageId($tsfe->getLanguage()->getLanguageId() ?? 0);

return $document;
}
Expand Down

0 comments on commit a461a81

Please sign in to comment.