From 8728e2f918ff8647a9080393293d33f19cfff0ae Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 19 Feb 2014 20:17:21 +1100 Subject: [PATCH] Fixes: U4-4260 When changing sort order on member type and saving, this doesn't get reflected on the member --- src/Umbraco.Web/Cache/ContentTypeCacheRefresher.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Cache/ContentTypeCacheRefresher.cs b/src/Umbraco.Web/Cache/ContentTypeCacheRefresher.cs index e76a8f448a..d419a10187 100644 --- a/src/Umbraco.Web/Cache/ContentTypeCacheRefresher.cs +++ b/src/Umbraco.Web/Cache/ContentTypeCacheRefresher.cs @@ -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 };