Fixed: New document types fails to save

This commit is contained in:
Per Ploug
2015-09-23 20:40:03 +02:00
parent 3b21936898
commit 1d23d2b7c6
3 changed files with 6 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ namespace Umbraco.Web.Models.Mapping
Id = Convert.ToInt32(basic.Id),
Key = basic.Key
})
.ForMember(t => t.Path, expression => expression.MapFrom(template => template.Path))
.ForMember(t => t.Path, expression => expression.Ignore())
.ForMember(t => t.Id, expression => expression.MapFrom(template => Convert.ToInt32(template.Id)))
.ForMember(x => x.VirtualPath, expression => expression.Ignore())
.ForMember(x => x.CreateDate, expression => expression.Ignore())