When the webform email is sent on a webform containing an addressfield component, I see a "Undefined index: addressfield" notice from line 163 of addressfield_tokens.tokens.inc.

Also, if I include a token in the email template like [submission:values:address:postal_code], it is empty.

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new612 bytes

This patch resolves both of those issues.

  • lambic committed 3b32d33 on 7.x-1.x authored by joelstein
    Issue #2977574 by joelstein: Undefined index: addressfield
    
lambic’s picture

committed to 7.x-1.x, thanks!

lambic’s picture

Status: Needs review » Reviewed & tested by the community
lambic’s picture

Status: Needs review » Reviewed & tested by the community
rmcom’s picture

Thank you for this great solution.

It would be great if this could be rolled out in a new release as soon as possible.

Thank you!

lambic’s picture

Status: Reviewed & tested by the community » Fixed
rmcom’s picture

Somehow this patch was not correctly applied to addressfield_tokens 7.x-1.12 as indicated on the referenced release page.

rmcom’s picture

Status: Fixed » Patch (to be ported)
rmcom’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
lambic’s picture

I see the patch in code, what makes you think it isn't there?

patrick r.’s picture

https://cgit.drupalcode.org/addressfield_tokens/log/

7.x-1.12 = 7.x-1.8 does not look right. ;-)

lambic’s picture

very strange, I'll clear out that tag and roll a new one.

lambic’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

rmcom’s picture

This patch is not present in 7.x-1.13 which makes several commerce modules go haywire.

Can this patch please be reapplied again. Thank you!

E.g. https://www.drupal.org/project/commerce_firstdata_gge4/issues/3041879

aitala’s picture

7.x-1.14 just came out...