Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Changed post category not updating previous category's CountDiscussions

edited September 2010 in Vanilla 2.0 - 2.8
When editing a post and changing it's category, I found CountDiscussions for the category which the post was previously in was not updating.

I fixed this by commenting out lines 430 to 438 and changing line 440 in class.discussionmodel.php to:
$this->UpdateDiscussionCount('All');

This could also be fixed by grabbing the original post category prior to editing and running something like this instead at line 440:
$this->UpdateDiscussionCount($CategoryIDOriginal); $this->UpdateDiscussionCount($CategoryIDNew);
Sign In or Register to comment.