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.

CommentFileSizeAuthor
#2 3182992-2.patch1.97 KBidebr

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
StatusFileSize
new1.97 KB

Attached patch fixes the typo in WebformPostcodeAPI::validateWebformPostcodeAPI() so the validation handler is called. The patch also removes any $this calls, since these are not allowed in a static context.

idebr’s picture

Project: Webform Postcode API » Webform PostcodeAPI

  • 95a5014 committed on 1.x
    Issue #3182992 by idebr: WebformPostcodeAPI::validateWebformPostcodeAPI...
idebr’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.