From 62336e4e28cd1197557903fb1a3280c75c8fb5a0 Mon Sep 17 00:00:00 2001 From: Steve Morgan Date: Thu, 7 Nov 2024 18:06:52 +0000 Subject: [PATCH] Bugfix: creating new doc type properties sort order doesn't count existing properties - puts it at top (+1) (#2523) Bug 17457 https://github.com/umbraco/Umbraco-CMS/issues/17457 Creating new doc type properties sort order doesn't count existing properties. Looking at this it seems that the hardwork is done to workout the sort order and assign it to preset but it's not returned undefined was (probably as a dev placeholder that's gone unnoticed!). --- .../design/content-type-design-editor-properties.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts index e85a4f7d5ba9..932df6aad2a1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts @@ -193,7 +193,7 @@ export class UmbContentTypeDesignEditorPropertiesElement extends UmbLitElement { } preset.sortOrder = sortOrderInt; } - return { data: { contentTypeUnique: this._ownerContentTypeUnique, preset: undefined } }; + return { data: { contentTypeUnique: this._ownerContentTypeUnique, preset: preset } }; }) .observeRouteBuilder((routeBuilder) => { this._newPropertyPath =