Skip to content

Commit

Permalink
Merge pull request #289 from Kentico/fix/default-culture-migration
Browse files Browse the repository at this point in the history
Fix creating of default culture
  • Loading branch information
akfakmot authored Nov 7, 2024
2 parents 3b94ac5 + 3d3be1c commit a1d84a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task<CommandResult> Handle(MigrateSitesCommand request, Cancellatio
ContentLanguageGUID = cmsCulture.CultureGuid,
ContentLanguageDisplayName = cmsCulture.CultureName,
ContentLanguageName = cmsCulture.CultureCode,
ContentLanguageIsDefault = true,
ContentLanguageIsDefault = string.Equals(cmsCulture.CultureCode, defaultCultureCode, StringComparison.InvariantCultureIgnoreCase),
ContentLanguageFallbackContentLanguageGuid = null,
ContentLanguageCultureFormat = cmsCulture.CultureCode
});
Expand Down Expand Up @@ -101,7 +101,7 @@ public async Task<CommandResult> Handle(MigrateSitesCommand request, Cancellatio
{
WebsiteChannelGUID = kx13CmsSite.SiteGuid,
WebsiteChannelChannelGuid = kx13CmsSite.SiteGuid,
WebsiteChannelDomain = kx13CmsSite.SiteDomainName,
WebsiteChannelDomain = kx13CmsSite.SiteDomainName.Trim('/'),
WebsiteChannelHomePage = homePagePath,
WebsiteChannelPrimaryContentLanguageGuid = migratedCultureCodes[defaultCultureCode].ContentLanguageGUID,
WebsiteChannelDefaultCookieLevel = cookieLevel,
Expand Down

0 comments on commit a1d84a3

Please sign in to comment.