Index: comment.module =================================================================== --- comment.module (revision 345) +++ comment.module (working copy) @@ -949,6 +949,9 @@ if ($_POST['op'] == t('Submit')) { $edit = $_POST['edit']; comment_save($edit['cid'], $edit); + if ($edit['status'] != $edit['prior_status']) { + _comment_update_node_statistics($edit['nid']); + } drupal_goto('admin/comment'); } @@ -974,6 +977,8 @@ $form .= filter_form('format', $comment->format); $form .= form_radios(t('Status'), 'status', $comment->status, array(t('Published'), t('Not published'))); $form .= form_hidden('cid', $cid); + $form .= form_hidden('nid', $comment->nid); + $form .= form_hidden('prior_status', $comment->status); $form .= form_submit(t('Submit')); print theme('page', form($form)); }