File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent
Umbraco.Web/PropertyEditors Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 535
535
// remove all tabs except the specified tab
536
536
var tabs = scaffold . variants [ 0 ] . tabs ;
537
537
var tab = _ . find ( tabs , function ( tab ) {
538
- return tab . id !== 0 && ( tab . alias . toLowerCase ( ) === contentType . ncTabAlias . toLowerCase ( ) || contentType . ncTabAlias === "" ) ;
538
+ return tab . id !== 0 && ( tab . label . toLowerCase ( ) === contentType . ncTabAlias . toLowerCase ( ) || contentType . ncTabAlias === "" ) ;
539
539
} ) ;
540
540
scaffold . variants [ 0 ] . tabs = [ ] ;
541
541
if ( tab ) {
Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
1
+ using System . Collections . Generic ;
2
2
using System . Linq ;
3
+ using Umbraco . Core . Models ;
3
4
using Umbraco . Core . Services ;
4
5
using Umbraco . Web . Editors ;
5
6
using Umbraco . Web . Mvc ;
@@ -22,7 +23,7 @@ public IEnumerable<object> GetContentTypes()
22
23
name = x . Name ,
23
24
alias = x . Alias ,
24
25
icon = x . Icon ,
25
- tabs = x . CompositionPropertyGroups . Select ( y => y . Name ) . Distinct ( )
26
+ tabs = x . CompositionPropertyGroups . Where ( x => x . Type == PropertyGroupType . Group && x . GetParentAlias ( ) == null ) . Select ( y => y . Name ) . Distinct ( )
26
27
} ) ;
27
28
}
28
29
}
You can’t perform that action at this time.
0 commit comments