Fixes U4-2980 - tabs not in the right order
This commit is contained in:
@@ -111,7 +111,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
|
||||
//now we need to aggregate the tabs and properties since we might have duplicate tabs (based on aliases) because
|
||||
// of how content composition works.
|
||||
foreach (var propertyGroups in content.PropertyGroups.GroupBy(x => x.Name))
|
||||
foreach (var propertyGroups in content.PropertyGroups.OrderBy(x => x.SortOrder).GroupBy(x => x.Name))
|
||||
{
|
||||
var aggregateProperties = new List<ContentPropertyDisplay>();
|
||||
|
||||
@@ -158,6 +158,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
Properties = Mapper.Map<IEnumerable<Property>, IEnumerable<ContentPropertyDisplay>>(orphanProperties)
|
||||
});
|
||||
|
||||
|
||||
//set the first tab to active
|
||||
aggregateTabs.First().IsActive = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user