New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiscussionModel BeforeGetCount event not fired #2222
Comments
Are you requesting an earlier hook to use? I'm reluctant to move an existing hook, and I don't wanna make a new one for no reason. |
The problem is that there is no way to modify the discussion counts in some cases. You can always modify the discussions fetched using The I'll be happy to submit a pull request. |
A PR is always best. 👍 |
PR is under review. |
When GetCount(); is called without arguments (like in DiscussionsController->Index) the counts are calculated from the CountDiscussions cache of the categories, rendering the BeforeGetCount event useless:
vanilla/applications/vanilla/models/class.discussionmodel.php
Lines 1058 to 1072 in 6942247
The text was updated successfully, but these errors were encountered: