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
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

bertboerland@ww... - October 22, 2004 - 19:48
Priority:critical» normal

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

kps - October 23, 2004 - 10:22

i think comments that need to be approved should not be added to the comment count?

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.

this doesnt make it to the critical status.

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

paul@murphymaph... - March 11, 2005 - 18:52

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

kps - March 12, 2005 - 16:47

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

killes@www.drop.org - August 10, 2005 - 17:02
Status:active» closed

not interested in fixing this for 4.5.

 
 

Drupal is a registered trademark of Dries Buytaert.