Merge pull request #4956 from umbraco/temp8-fix-for-creating-content-templates

V8: Fixed issue when creating variant content templates,
This commit is contained in:
Robert
2019-03-12 11:30:44 +01:00
committed by GitHub
@@ -2875,7 +2875,14 @@ namespace Umbraco.Core.Services.Implement
{
foreach (var property in blueprint.Properties)
{
content.SetValue(property.Alias, property.GetValue(culture), culture);
if (property.PropertyType.VariesByCulture())
{
content.SetValue(property.Alias, property.GetValue(culture), culture);
}
else
{
content.SetValue(property.Alias, property.GetValue());
}
}
content.Name = blueprint.Name;