From my work on http://drupal.org/node/102353 I found this:

Repeatable: always

Steps to repeat:
1. create content
2. comment on content
3. enable tracker
4. visit tracker and look at the number of replies on each post and last update
5. disable comment module
6. re-visit tracker

Expected results:
Number of replies and time of last update stay the same and only default to 0 and node last update time if node_comment_statistics is null for a particular node.

Actual results:
Replies goes to zero and "last update" goes to node->changed

CommentFileSizeAuthor
#3 102766_0.diff981 bytesgreggles
#1 102766.diff732 bytesgreggles
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greggles’s picture

Status: Active » Needs review
FileSize
732 bytes

Looking back through CVS it seems that a "module_exists('comment') was added in revision 1.86 to prevent a comment specific function from being called. Since we no longer call that comment functon we can remove that check for module exists. The original issue was http://drupal.org/node/9031

Attached is a patch which fixes this.

To test:
1. Create some content
2. Add some comments
3. Visit the tracker page and notice the number of comments on each post
4. Disable comment.module
5. Visit the tracker page and note the "0" for number of replies on all posts

Attached (extremely simple) patch removes the check for comment module.

Steven’s picture

Status: Needs review » Needs work

We still call comment_num_new() as far as I can see. The other/older issue with tracker.module and comment.module (and missing node_comment_statistics lines) has been fixed, so this patch needs to be revisited and commented more clearly.

greggles’s picture

Status: Needs work » Needs review
FileSize
981 bytes

Thanks for the review. I've updated the patch with your suggestions.

If the comment is still lacking please let me know what you would like to see in it.

drumm’s picture

Status: Needs review » Needs work

I think the Replies column should be removed if the comment module is disabled. Any number of replies would be inaccurate since you can't view any of them.

tstoeckler’s picture

Status: Needs work » Closed (fixed)

In both Drupal 6 and Drupal 7 Tracker module depends on Comment module.