Incorrect comment count
kps - October 22, 2004 - 19:29
| Project: | Drupal |
| Version: | 4.5.0 |
| Component: | comment.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Comments that have been queued for administrative approval are never reflected in the count of comments.
Presumably _comment_update_node_statistics() needs to be called from comment_admin_edit() or comment_save() or some such place. Perhaps also the cache-clearing should be performed then, rather than when the comment is queued.

#1
apart from your point (i think comments that need to be approved should not be added to the comment count?), this doesnt make it to the critical status.
#2
Well, of course not. They should be added to the comment count when they're published. (And subtracted when unpublished, obviously.) Otherwise the comment count bears no relation to the number of comments.
Well, nonsense comment counts make Drupal 4.5.0 unusable for a production site. If that isn't critical, what is? This doesn't say.
#3
I couldn't agree more.
When a comment is published, the count should increase.
When unpublished, the count should decrease.
What can be done to fix this? Is there a patch in the works?
#4
I believe it's fixed in 4.6.
For 4.5, you can get my patch here -- look for "comment-save-count.patch" near the bottom of the list.
#5
not interested in fixing this for 4.5.