fixes creating content

This commit is contained in:
Shannon
2018-08-07 09:09:34 +10:00
parent 6dfaaffdfe
commit 96aa442855

View File

@@ -91,7 +91,7 @@ namespace Umbraco.Web.Editors.Binders
throw new InvalidOperationException("No content type found with alias " + model.ContentTypeAlias);
}
return new Content(
model.PersistedContent.ContentType.VariesByCulture() ? null : model.Variants.First().Name,
contentType.VariesByCulture() ? null : model.Variants.First().Name,
model.ParentId,
contentType);
}