Skip to content

[9.x] Fix toggle field filter#812

Merged
duncanmcclean merged 1 commit into
9.xfrom
fix/toggle-filter-incomplete
May 8, 2026
Merged

[9.x] Fix toggle field filter#812
duncanmcclean merged 1 commit into
9.xfrom
fix/toggle-filter-incomplete

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where toggle fields couldn't be filtered on resource listings.

This was happening because the isComplete method required both an operator and a value to be present, but toggle fields only provide a value without an operator.

This PR fixes it by updating the isComplete check to handle toggle fields (no operator, just a value) and null/not-null operators (no value needed).

Fixes #810
Related: statamic/cms#14015

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@duncanmcclean duncanmcclean merged commit a648377 into 9.x May 8, 2026
16 checks passed
@duncanmcclean duncanmcclean deleted the fix/toggle-filter-incomplete branch May 8, 2026 07:39
@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

Released as part of v9.4.5.

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.

Can't filter toggle fields

1 participant