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

[4.x] Antlers: Corrects an issue with strict equality inside conditions #9621

Conversation

JohnathonKoster
Copy link
Contributor

This PR fixes #9615 by ensuring that context variables for the condition processor are evaluated with the correct settings, to prevent collapsing values too early (as was the case when double executing tags).

The linked issue manifests because the bugged behavior will return 1, causing the strict equality to fail.

@jasonvarga jasonvarga merged commit 95ed0de into statamic:4.x Feb 29, 2024
19 checks passed
@jasonvarga jasonvarga deleted the antlers-correct-strict-equality-regression-when-processing-tag-results branch February 29, 2024 15:49
duncanmcclean added a commit to duncanmcclean/simple-commerce that referenced this pull request Mar 1, 2024
Fixed in statamic/cms#9621 but I want these tests to pass before that release is tagged.
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.

Tags in conditions not working like they were before
2 participants