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
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 could also be fixed by grabbing the original post category prior to editing and running something like this instead at line 440:
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);
Tagged:
0
Comments