Skip to content

[6.x] Forms 2: Fix "not empty" conditions in form logic - #15622

Merged
jasonvarga merged 1 commit into
forms-2from
fix/forms-2-rule-evaluator-not-empty
Oct 8, 2026
Merged

jasonvarga merged 1 commit into
forms-2from
fix/forms-2-rule-evaluator-not-empty

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

The PHP RuleEvaluator forced the operator to == whenever a condition's value was empty, so not empty behaved like equals empty: empty fields passed and filled-in fields failed. This affected page logic in multi-page forms and form connection conditions. This drops the operator override so it keeps the original operator, matching the JS field conditions Validator, and adds tests for not/isnt/!=/!== against empty values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit df089fd into forms-2 Oct 8, 2026
63 checks passed
@jasonvarga
jasonvarga deleted the fix/forms-2-rule-evaluator-not-empty branch October 8, 2026 22:31
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.

1 participant