We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4260503 commit 5796b84Copy full SHA for 5796b84
src/Umbraco.Web/PropertyEditors/NestedContentController.cs
@@ -1,5 +1,6 @@
1
-using System.Collections.Generic;
+using System.Collections.Generic;
2
using System.Linq;
3
+using Umbraco.Core.Models;
4
using Umbraco.Core.Services;
5
using Umbraco.Web.Editors;
6
using Umbraco.Web.Mvc;
@@ -22,7 +23,7 @@ public IEnumerable<object> GetContentTypes()
22
23
name = x.Name,
24
alias = x.Alias,
25
icon = x.Icon,
- tabs = x.CompositionPropertyGroups.Where(y => y.Type == Core.Models.PropertyGroupType.Group && !y.Alias.Contains("/")).Select(y => y.Name).Distinct()
26
+ tabs = x.CompositionPropertyGroups.Where(x => x.Type == PropertyGroupType.Group && x.GetParentAlias() == null).Select(y => y.Name).Distinct()
27
});
28
}
29
0 commit comments