From 96aa44285532ff0b5f8f8d992cf72f60575b9baf Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 7 Aug 2018 09:09:34 +1000 Subject: [PATCH] fixes creating content --- src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs b/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs index 180d9746a3..e2e896f30d 100644 --- a/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs +++ b/src/Umbraco.Web/Editors/Binders/ContentItemBinder.cs @@ -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); }