Merge remote-tracking branch 'origin/v10/dev' into v11/dev
# Conflicts: # src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs # version.json
This commit is contained in:
@@ -125,13 +125,8 @@ public class MacroRenderingController : UmbracoAuthorizedJsonController
|
||||
|
||||
// When rendering the macro in the backoffice the default setting would be to use the Culture of the logged in user.
|
||||
// Since a Macro might contain thing thats related to the culture of the "IPublishedContent" (ie Dictionary keys) we want
|
||||
// to set the current culture to the culture related to the content item. This is hacky but it works.
|
||||
|
||||
// fixme
|
||||
// in a 1:1 situation we do not handle the language being edited
|
||||
// so the macro renders in the wrong language
|
||||
|
||||
var culture = DomainUtilities.GetCultureFromDomains(publishedContent.Id, publishedContent.Path, null,
|
||||
// to set the current culture to the currently edited culture with fallback to the culture related to the content item.
|
||||
var culture = Request.ClientCulture() ?? DomainUtilities.GetCultureFromDomains(publishedContent.Id, publishedContent.Path, null,
|
||||
umbracoContext, _siteDomainHelper);
|
||||
|
||||
if (culture != null)
|
||||
|
||||
Reference in New Issue
Block a user