Problem/Motivation
The module validates the value "0" as valid since it never considers it a value to check
Steps to reproduce
- have a webform with the webform IBAN field.
- test or enter a value of "0" into it.
- Validator accepts it as a valid IBAN.
Proposed resolution
Patch wioll change the logic to check for having the field with hasfield.
Remaining tasks
Review Patch
Issue fork webform_iban_field-3534883
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2.x
changes, plain diff MR !3
Comments
Comment #2
sysosmaster commentedComment #3
sysosmaster commentedComment #5
joshahubbers commentedSorry for the delay. I have been messing around a bit. Your suggestion works well for the single field. But while testing I noticed that the validation of the multiple field never has worked. Auch!
So I altered the code, to check for 0, and also make all validations work. I also adjusted the tests to get them to work.
Comment #8
joshahubbers commentedComment #9
joshahubbers commentedI did however add a commit to credit your contribution. Thank you for your time.