Cleanup/fix content variants mapping

This commit is contained in:
Stephan
2018-09-17 13:19:24 +02:00
parent fb246de5fc
commit 95361da1f8
9 changed files with 82 additions and 87 deletions

View File

@@ -39,7 +39,7 @@ namespace Umbraco.Web.Models.Mapping
{
//We need to set the culture in the mapping context since this is needed to ensure that the correct property values
//are resolved during the mapping
context.Items[ResolutionContextExtensions.CultureKey] = x.IsoCode;
context.Options.SetCulture(x.IsoCode);
return context.Mapper.Map<IContent, ContentVariantDisplay>(source, null, context);
}).ToList();