- last update
9 months ago 1 pass - Status changed to Needs review
9 months ago 2:01pm 26 March 2024 - 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
I rebased the merge request. Please review. This still should have tests.
Webform with 4 fields:
- name
- email1
- email2
- comment
name and comment are text fields, not required
email1 and email2 are required email fields
validation: email2 must be equal to email1
if not equal, the correct error is displayed to the user.
if equal, the form displays the error "email2 is not equal to name" instead of proceeding with no error.
how to get this validation to work?
interestingly, if I fill the email address into the Name field, the error becomes "email2 is not equal to comment"
so the validation somehow wants to compare email2 to any other field after the first validation is done.
Needs review
2.0
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I rebased the merge request. Please review. This still should have tests.