Skip to content
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

[5.x] When augmenting terms, entries_count should only consider published entries #10727

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Aug 29, 2024

This pull request makes it so that the entries_count variable available in templates or via the REST API only takes published entries into consideration.

A fix for this issue was previously attempted in #7489, where it changed the logic in the main entriesCount method, however, there are situations where we want to include draft entries in that count, like in the CP.

Fixes #3539.

@duncanmcclean duncanmcclean changed the title When augmenting terms, entries_count should only consider published… [5.x] When augmenting terms, entries_count should only consider published entries Aug 29, 2024
@jasonvarga jasonvarga merged commit 5ca20e2 into 5.x Sep 11, 2024
17 checks passed
@jasonvarga jasonvarga deleted the fix/entries-count branch September 11, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

entries_count includes published and unpublished entries
2 participants