Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Uwe Hermann commentedConfirmed in HEAD. Patch attached. Should probably be backported to 4-6, too.
Comment #2
Uwe Hermann CreditAttribution: Uwe Hermann commentedPatch rerolled, boldly setting to "ready to be committed".
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD. Patch did not apply against DRUPAL-4-6.
Comment #4
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedOh well, not _that_ important.
Comment #5
(not verified) CreditAttribution: commented