clean up membertype groups and props
This commit is contained in:
@@ -114,6 +114,13 @@ namespace Umbraco.Web.Editors
|
||||
|
||||
///TODO: Validate the submitted model
|
||||
|
||||
//filter out empty properties
|
||||
contentType.Groups = contentType.Groups.Where(x => x.Name.IsNullOrWhiteSpace() == false).ToList();
|
||||
foreach (var group in contentType.Groups)
|
||||
{
|
||||
group.Properties = group.Properties.Where(x => x.Alias.IsNullOrWhiteSpace() == false).ToList();
|
||||
}
|
||||
|
||||
var ctId = Convert.ToInt32(contentType.Id);
|
||||
|
||||
if (ctId > 0)
|
||||
|
||||
Reference in New Issue
Block a user