Fixes U4-2980 - tabs not in the right order

This commit is contained in:
perploug
2013-09-30 13:18:34 +02:00
parent 8b25210895
commit ca56539c65

View File

@@ -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;