Navigation Menu

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

Fix "filtering a collection throws an exception" #5915

Merged

Conversation

psyao
Copy link
Contributor

@psyao psyao commented Apr 26, 2022

In an Entries fieldtype, when I filter by a collection, an exception is thrown. It happens when the first collection in the list has fields that are listable (listable: true) and when those fields do not exist in the collection selected for filtering.

This PR fixes that problem.

Also fixes #4317

@jasonvarga jasonvarga merged commit 99c5dc3 into statamic:3.3 Aug 12, 2022
@psyao psyao deleted the fix-filtering-by-collection-throws-an-exception branch August 15, 2022 06:33
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.

Error when trying to Link Existing Item for Multi Taxonomy Term field.
2 participants