Skip to content

Commit 1ab321c

Browse files
Fix for U4-5737 Create package: ContentType Tab index not saved
1 parent 209ccb9 commit 1ab321c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Umbraco.Core/Services/EntityXmlSerializer.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ public XElement Serialize(IDataTypeService dataTypeService, IMediaType mediaType
248248
{
249249
var tab = new XElement("Tab",
250250
new XElement("Id", propertyGroup.Id.ToString(CultureInfo.InvariantCulture)),
251-
new XElement("Caption", propertyGroup.Name));
251+
new XElement("Caption", propertyGroup.Name),
252+
new XElement("SortOrder", propertyGroup.SortOrder));
253+
252254
tabs.Add(tab);
253255
}
254256

@@ -354,7 +356,8 @@ public XElement Serialize(IDataTypeService dataTypeService, IContentType content
354356
{
355357
var tab = new XElement("Tab",
356358
new XElement("Id", propertyGroup.Id.ToString(CultureInfo.InvariantCulture)),
357-
new XElement("Caption", propertyGroup.Name));
359+
new XElement("Caption", propertyGroup.Name),
360+
new XElement("SortOrder", propertyGroup.SortOrder));
358361
tabs.Add(tab);
359362
}
360363

0 commit comments

Comments
 (0)