Adding migration for updating PropertyGroups and PropertyTypes

This commit is contained in:
Morten Christensen
2013-02-28 14:54:42 -01:00
parent 0af47963c6
commit c38c18fed8
3 changed files with 5 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ namespace Umbraco.Core.Models
if (CompositionPropertyGroups.Any(x => x.Name == propertyGroupName))
{
var parentPropertyGroup = CompositionPropertyGroups.First(x => x.Name == propertyGroupName && x.ParentId.HasValue == false);
propertyGroup.SortOrder = parentPropertyGroup.SortOrder + 1;
propertyGroup.SortOrder = parentPropertyGroup.SortOrder;
propertyGroup.ParentId = parentPropertyGroup.Id;
}