From 33a77c1d08b951a7295ce686c17697acdb2d226a Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Wed, 15 Jan 2025 13:22:33 +0100 Subject: [PATCH] IBX-9293: Use default language code in `getContentPreviewItem` --- src/lib/Menu/ContentRightSidebarBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Menu/ContentRightSidebarBuilder.php b/src/lib/Menu/ContentRightSidebarBuilder.php index 0372f0abed..84d5085c5b 100644 --- a/src/lib/Menu/ContentRightSidebarBuilder.php +++ b/src/lib/Menu/ContentRightSidebarBuilder.php @@ -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,