Skip to content

Conversation

@GarethFrost
Copy link
Contributor

Currently

if (! in_array($this->context->get('status'), ['not_closed', 'open', 'closed', 'cancelled'])) { 

is always true and adds ' AND status = ' to the query even if no context is defined.

This fix checks if the status context exists and then adds the status if the ! in_array check is true.

Currently
if (! in_array($this->context->get('status'), ['not_closed', 'open', 'closed', 'cancelled'])) {
is always true and adds ' AND status = ' to the query even if no context is defined.

This fix checks if the status context exists and then adds the status if the ! in_array check is true.
@ryanmitchell ryanmitchell merged commit 7505684 into statamic-rad-pack:main Jan 12, 2026
4 checks passed
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