From 40285b76b994862d06aa38d79699e3eb1e18dfdd Mon Sep 17 00:00:00 2001 From: Ealse Bouma Date: Mon, 22 Aug 2022 10:32:55 +0200 Subject: [PATCH] Fix: Infinite Editor creates each save action a new version when content is invalid (#12713) (cherry picked from commit 93a85a46f32aa80ffd9fa1387ce8025b2264b470) --- .../src/common/services/contenteditinghelper.service.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js index e7ecb5c93c..30afe39884 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js @@ -142,6 +142,9 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, editorSt //update editor state to what is current editorState.set(args.content); + //needs to be manually set for infinite editing mode + args.scope.isNew = args.content.id === 0 && args.scope.isNew; + return $q.reject(err); }); }