Merges in parent ct names on each tab
This commit is contained in:
@@ -130,8 +130,10 @@ namespace Umbraco.Web.Models.Mapping
|
||||
//lock the tab
|
||||
mainTab.Inherited = true;
|
||||
|
||||
//collect all the involved content types
|
||||
mainTab.ParentTabContentTypes = groupOfGroups.Where(x => x.ContentTypeId != source.Id).Select(x => x.ContentTypeId);
|
||||
//collect all the involved content types
|
||||
var parents = groupOfGroups.Where(x => x.ContentTypeId != source.Id).ToList();
|
||||
mainTab.ParentTabContentTypes = parents.Select(x => x.ContentTypeId);
|
||||
mainTab.ParentTabContentTypeNames = parents.SelectMany(x => x.ParentTabContentTypeNames);
|
||||
sortedGroups.Add(mainTab);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user