Skip to content

Commit

Permalink
Ensure content is published.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Dec 5, 2023
1 parent e476a59 commit 0f34c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.JsonEditor/Controllers/AdminController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public async Task<IActionResult> Edit(string contentItemId)
contentItem.ContentItemVersionId = null;
}

contentItem.Published = false;
await _contentManager.PublishAsync(contentItem);
_session.Save(contentItem);

if (!string.IsNullOrEmpty(returnUrl) &&
submitPublish != "submit.PublishAndContinue" &&
Expand Down

0 comments on commit 0f34c5e

Please sign in to comment.