Skip to content

Commit

Permalink
IBX-9293: Use default language code in getContentPreviewItem
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jan 15, 2025
1 parent 77fabcf commit 33a77c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Menu/ContentRightSidebarBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ private function getContentPreviewItem(
array $options
): ItemInterface {
$versionNo = $content->getVersionInfo()->versionNo;
$languageCode = $content->contentInfo->mainLanguageCode;
$languageCode = $content->getDefaultLanguageCode();

$siteAccesses = $this->siteaccessResolver->getSiteAccessesListForLocation(
$location,
Expand Down

0 comments on commit 33a77c1

Please sign in to comment.