Wrong comment count after moving a forum with shadow copy

Created on 7 November 2014, over 9 years ago
Updated 24 April 2024, 2 months ago

When moving a forum topic to a different forum, leaving behind a shadow copy, number of comments in `forum_index` table is twice as much as it should be. The query counts the comments for the original node and for the shadow copy as different comments. It sums the comments counter for the original node and shadow copy and applies it to each node attached to a forum.
The situation is probably the same if there are multilingual nodes.

Can be reproduced on latest fresh Drupal installation, requires `advanced_forum` module to see wrong post counters. The query from `advanced_forum` uses `forum_index` table updated by `forum` module after any operation applied to a comment.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

forum.module

Created by

πŸ‡²πŸ‡©Moldova SurfinSpirit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024