mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Fixing CommentsActions
--HG-- branch : 1.x
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Orchard.Comments.Rules {
|
||||
/// </summary>
|
||||
private bool Close(dynamic context) {
|
||||
var contentId = Convert.ToInt32(context.Properties["ContentId"]);
|
||||
var content = _contentManager.Get(contentId);
|
||||
ContentItem content = _contentManager.Get(contentId);
|
||||
|
||||
if (content != null) {
|
||||
var comments = content.As<CommentsPart>();
|
||||
|
||||
Reference in New Issue
Block a user