Fix exception when comments are used in Workflows

This commit is contained in:
Sebastien Ros
2013-08-23 17:07:49 -07:00
parent 6fe6b5afce
commit 4a6daa9ffa

View File

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