From c165a34ed7a42cf4d23ddfc76407b8857a3bcda7 Mon Sep 17 00:00:00 2001 From: Sebastiaan Jansssen Date: Fri, 23 Feb 2018 13:17:24 +0100 Subject: [PATCH] U4-10964 Adding a new property to a MemberType if you are not in Sensitive Data group throws a 404 when saving --- src/Umbraco.Web/Editors/MemberTypeController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Umbraco.Web/Editors/MemberTypeController.cs b/src/Umbraco.Web/Editors/MemberTypeController.cs index 45486125e7..8134abb592 100644 --- a/src/Umbraco.Web/Editors/MemberTypeController.cs +++ b/src/Umbraco.Web/Editors/MemberTypeController.cs @@ -144,6 +144,10 @@ namespace Umbraco.Web.Editors { foreach (var prop in props) { + // Id 0 means the property was just added, no need to look it up + if (prop.Id == 0) + continue; + var foundOnContentType = ct.PropertyTypes.FirstOrDefault(x => x.Id == prop.Id); if (foundOnContentType == null) throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No property type with id " + prop.Id + " found on the content type"));