Closed (fixed)
Project:
Commentsblock
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jun 2013 at 03:13 UTC
Updated:
13 May 2014 at 10:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mienjob commentedHello, I got the same problem here.
Comment #2
mienjob commentedHello, I solved this problem by changing function "comment_block_static_comments" in file "commentsblock.module", as follow.
Before
--------
function comment_block_static_comments
.....
if (!isset($comments[$nid])) {
$comments[$nid]['links'] = '';
$comments[$nid]['comments'] = comment_node_page_additions($node);
}
......
After
------------
function comment_block_static_comments
......
if (!isset($comments[$nid])) {
$comments[$nid]['links'] = '';
if($node){
$comments[$nid]['comments'] = comment_node_page_additions($node);
}
}
.....
Comment #3
nancydru@mienjob: That seems to do the trick. Here's a regular patch.
Comment #4
emilyf commentedpatch fixed the issue for me.
Comment #5
matt.rad commentedFixed for me too. Thanks very much!
Comment #6
Anonymous (not verified) commentedpatch in #3 works well.
Thank you.
Comment #7
furamag commentedPatch in #3 works for me too. Please commit it to repository.
Comment #8
bendev commentedPatch in #3 works for me too. Please commit it to repository.
Comment #8.0
bendev commentedJust updated the formatting.
Comment #9
marcoka commentedwill be commited to next version
Comment #10
marcoka commentedComment #11
marcoka commentedComment #12
gge commentedThis patch should be commited.
Comment #13
marcoka commentedhttps://drupal.org/node/2023849#
Comment #14
marcoka commentedcommited.