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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | comment_17.patch | 1.1 KB | Uwe Hermann |
| #1 | comment_14.patch | 1.07 KB | Uwe Hermann |
Comments
Comment #1
Uwe Hermann commentedConfirmed in HEAD. Patch attached. Should probably be backported to 4-6, too.
Comment #2
Uwe Hermann commentedPatch rerolled, boldly setting to "ready to be committed".
Comment #3
dries commentedCommitted to HEAD. Patch did not apply against DRUPAL-4-6.
Comment #4
killes@www.drop.org commentedOh well, not _that_ important.
Comment #5
(not verified) commented