fixes composition check in change doc type

This commit is contained in:
Shannon
2016-01-25 16:43:20 +01:00
parent 930bada737
commit 3712a80031

View File

@@ -194,7 +194,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs
private IEnumerable<PropertyType> GetPropertiesOfContentType(IContentType contentType)
{
var properties = contentType.PropertyTypes.ToList();
while (contentType.ParentId > -1)
while (contentType.ParentId > -1 && contentType.CompositionAliases().Any())
{
contentType = ApplicationContext.Current.Services.ContentTypeService.GetContentType(contentType.ParentId);
properties.AddRange(contentType.PropertyTypes);