#20219: Fixing spam notifications

Create(contentItem) actually publishes the content item.
Create(ci, VersionOptions.Draft) won't

Work Item: 20219
This commit is contained in:
Sebastien Ros
2013-10-18 16:00:55 -07:00
parent 0c9e4e1224
commit 2bdc29d8e9

View File

@@ -30,7 +30,7 @@ namespace Orchard.Comments.Controllers {
return this.RedirectLocal(returnUrl, "~/");
var comment = Services.ContentManager.New<CommentPart>("Comment");
Services.ContentManager.Create(comment);
Services.ContentManager.Create(comment, VersionOptions.Draft);
var editorShape = Services.ContentManager.UpdateEditor(comment, this);