Skip to content

[9.x] Fix date filter between operator not working in runway listing#822

Merged
duncanmcclean merged 2 commits into
statamic-rad-pack:9.xfrom
albinameti00:fix/date-filter-between-operator
May 26, 2026
Merged

[9.x] Fix date filter between operator not working in runway listing#822
duncanmcclean merged 2 commits into
statamic-rad-pack:9.xfrom
albinameti00:fix/date-filter-between-operator

Conversation

@albinameti00
Copy link
Copy Markdown
Contributor

Problem

When filtering a Runway resource listing by a date field using the between operator,
the filter is silently ignored and all results are returned unfiltered.

This is because isComplete() only checks for the value key, but the between
operator sends range_value instead:

  • after / before{ "operator": ">", "value": "..." }
  • between{ "operator": "between", "range_value": { "start": "...", "end": "..." } }

So isComplete() always returns false for between, preventing the filter from ever being applied.

Fix

Add a between case to isComplete() that checks for range_value.start and range_value.end.

@duncanmcclean duncanmcclean merged commit 11a5dd2 into statamic-rad-pack:9.x May 26, 2026
15 checks passed
@duncanmcclean
Copy link
Copy Markdown
Member

Thanks!

@github-actions
Copy link
Copy Markdown

Released as part of v9.4.7.

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.

2 participants