The comment block shows links comments which were once published, but later set to "don't publish".

How to reproduce the bug:

1. create a node
2. post a comment
3. edit the node: set uncheck published

Bugfix:

change the sql query for comments to show in comment_block:

modules/comment.module
Line 184

to

SELECT c.nid, c.* FROM {comments} c INNER JOIN {node} n USING (nid) WHERE n.status = 1 AND c.status = 0 ORDER BY c.timestamp DESC

CommentFileSizeAuthor
#2 comment_17.patch1.1 KBUwe Hermann
#1 comment_14.patch1.07 KBUwe Hermann
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Uwe Hermann’s picture

Status: Active » Needs review
FileSize
1.07 KB

Confirmed in HEAD. Patch attached. Should probably be backported to 4-6, too.

Uwe Hermann’s picture

Version: 4.6.2 » x.y.z
Status: Needs review » Reviewed & tested by the community
FileSize
1.1 KB

Patch rerolled, boldly setting to "ready to be committed".

Dries’s picture

Status: Reviewed & tested by the community » Active

Committed to HEAD. Patch did not apply against DRUPAL-4-6.

killes@www.drop.org’s picture

Status: Active » Fixed

Oh well, not _that_ important.

Anonymous’s picture

Status: Fixed » Closed (fixed)