From 5ae0b64b365797f5ff9c6052edef71bfa40413c2 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 11 Aug 2021 14:29:06 +0200 Subject: [PATCH] Fixed issue with saving content when having an empty variant. Aligned codebase with how it is in v8 --- .../Controllers/ContentController.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs index 6cb0addb719a..54adef04fa8e 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs @@ -913,13 +913,8 @@ private async Task> PostSaveInternal(ContentIte v.Notifications.AddRange(n.Notifications); } - HandleInvalidModelState(display, cultureForInvariantErrors); - //lastly, if it is not valid, add the model state to the outgoing object and throw a 400 - if (!ModelState.IsValid) - { - return ValidationProblem(display, ModelState); - } + HandleInvalidModelState(display, cultureForInvariantErrors); if (wasCancelled) {