This issue was also raised against Drupal 6 in taxonomy_term_count_nodes returns wrong count.

I include this here as a separate issue because my patch is much simpler and dodes not change the API, and something along these lines may be preferable to the patches being considered there for Drupal 5 (maybe even Drupal 6).

I'll be following both issue queues and will try to update this patch with relevant suggestions.

See Agaric's notes on quick-fixing this function.

benjamin, Agaric Design Collective

CommentFileSizeAuthor
#1 taxonomy_term_count_nodes_children.patch1.91 KBmlncn

Comments

mlncn’s picture

Title: taxonomy_term_count_nodes returns wrong count fir duplicate children, may not cache right either » taxonomy_term_count_nodes returns wrong count for duplicate children, may not cache right either
StatusFileSize
new1.91 KB

Fixing title and attaching patch (which I had done, maybe only comments can have patches).

drumm’s picture

Status: Needs review » Closed (duplicate)

Duplicate of http://drupal.org/node/144969. Feel free to post patches which address the same issue to the same issue.

pancho’s picture

Could you please repost your patch in #1 to http://drupal.org/node/144969?