Fixes: U4-4260 When changing sort order on member type and saving, this doesn't get reflected on the member

This commit is contained in:
Shannon
2014-02-19 20:17:21 +11:00
parent cd53682ddb
commit 8728e2f918

View File

@@ -52,8 +52,12 @@ namespace Umbraco.Web.Cache
Alias = contentType.Alias,
Id = contentType.Id,
PropertyTypeIds = contentType.PropertyTypes.Select(x => x.Id).ToArray(),
//either IContentType or IMediaType
Type = (contentType is IContentType) ? typeof(IContentType).Name : typeof(IMediaType).Name,
//either IContentType or IMediaType or IMemberType
Type = (contentType is IContentType)
? typeof(IContentType).Name
: (contentType is IMediaType)
? typeof(IMediaType).Name
: typeof(IMemberType).Name,
DescendantPayloads = contentType.Descendants().Select(x => FromContentType(x)).ToArray(),
WasDeleted = isDeleted
};