Skip to content

Commit

Permalink
#19940: Don't create draft custom forms
Browse files Browse the repository at this point in the history
Work Item: 19940
  • Loading branch information
sebastienros committed Nov 7, 2013
1 parent 0c6dc4c commit ed86aaf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private ActionResult CreatePOST(int id, string returnUrl, Action<ContentItem> co
if (!Services.Authorizer.Authorize(Permissions.CreateSubmitPermission(customForm.ContentType), contentItem, T("Couldn't create content")))
return new HttpUnauthorizedResult();

_contentManager.Create(contentItem, VersionOptions.Draft);
//_contentManager.Create(contentItem, VersionOptions.Draft);

dynamic model = _contentManager.UpdateEditor(contentItem, this);

Expand Down Expand Up @@ -166,9 +166,10 @@ private ActionResult CreatePOST(int id, string returnUrl, Action<ContentItem> co

// save the submitted form
if (!customForm.SaveContentItem) {
Services.ContentManager.Remove(contentItem);
// Services.ContentManager.Remove(contentItem);
}
else {
_contentManager.Create(contentItem);
conditionallyPublish(contentItem);
}

Expand Down

0 comments on commit ed86aaf

Please sign in to comment.