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