Skip to content

Commit

Permalink
Fixed issue with saving content when having an empty variant. Aligned…
Browse files Browse the repository at this point in the history
… codebase with how it is in v8
  • Loading branch information
bergmania committed Aug 11, 2021
1 parent c2d54f5 commit 5ae0b64
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Umbraco.Web.BackOffice/Controllers/ContentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -913,13 +913,8 @@ private async Task<ActionResult<ContentItemDisplay>> 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)
{
Expand Down

0 comments on commit 5ae0b64

Please sign in to comment.