Problem/Motivation
The webform_postcodeapi element contains a validate function that is never called due a typo in the function name.
Proposed resolution
Fix the typo in WebformPostcodeAPI::validateWebformPostcodeAPI() so the validation handler is called.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The postal code element is validated.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3182992-2.patch | 1.97 KB | idebr |
Comments
Comment #2
idebr commentedAttached patch fixes the typo in WebformPostcodeAPI::validateWebformPostcodeAPI() so the validation handler is called. The patch also removes any
$thiscalls, since these are not allowed in a static context.Comment #3
idebr commentedComment #5
idebr commented