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] Fix term filter on entries listing #11268

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue when filtering by term fields on the entry listing, where if the selected term's slug is part of the slug of another term, the wrong results might have been returned.

For example: if you were filtering by a term with the slug of ev, it would query for entries where the term slug contained ev, meaning entries associated with other terms like beverages could be returned.

This PR addresses the issue by replacing the like condition with ->whereJsonContains() which seems to return the correct results.

Fixes #11262.

@jasonvarga jasonvarga merged commit 527f828 into 5.x Dec 17, 2024
20 checks passed
@jasonvarga jasonvarga deleted the fix/filtering-by-terms-in-entry-listing branch December 17, 2024 15:48
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.

When filtering by a taxonomy in the collection entries table view, it displays incorrect entries when filtered
2 participants