[drupal-devel] [bug] comment stats don't update after approval in moderation queue

Steven drupal-devel at drupal.org
Fri Mar 18 08:43:39 UTC 2005


Issue status update for http://drupal.org/node/18215

 Project:      Drupal
 Version:      cvs
 Component:    comment.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  ankur
 Updated by:   Steven
 Status:       patch

Is there any harm in always calling _comment_update_node_statistics()
after editing a node? As far as I can tell, it's a pretty benign call.
The only thing odd in there is:
$node = node_load(array('nid' => $nid));
But I don't see $node being used anywhere in that function. Anyone have
an idea why? ;)


Steven



Previous comments:
------------------------------------------------------------------------

March 1, 2005 - 23:47 : ankur

Attachment: http://drupal.org/files/issues/comment.module_5.diff (861 bytes)

I don't know if this is by design, but I experimenting with forcing
anonymous comments through the comments approval queue.  After I logged
in as someone with appropriate permissions and marked the comment
"published" in the comments approval queue, the link attached to the
appropriate node teaser still said "add new comment" rather than "1
comment" or "1 new comment".
Here's a patch for it.  I believe the diff for the patch is taken
against comment.module from 4.5.2.  It makes some minor additions to
function comment_admin_edit().
  -Ankur


------------------------------------------------------------------------

March 2, 2005 - 01:38 : ankur

Attachment: http://drupal.org/files/issues/comment.module_6.diff (889 bytes)

Apologies for the extra e-mail.  The previous patch file was not done
correctly.  Here's a diff against Revision 1.302.2.9, the last 4-5-2
tagged version of the module as of this post.
  -Ankur


------------------------------------------------------------------------

March 13, 2005 - 23:06 : killes at www.drop.org

Applies also to head.
ankur: Please create patches from the Drupal root directory.


------------------------------------------------------------------------

March 15, 2005 - 22:24 : Dries

I'm not a big fan of hidden fields.  I'll try to think of an alternative
fix.





More information about the drupal-devel mailing list