Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Whenever you change the value of the "Field key" value, there is a problem in the generation of the email: the field merely does not appear. This has to do with the implementation of the theme_webform_mail_fields function in webform.inc. The reason seems to be that the $node->webformcomponents is indexed by the CIDs (the 113124343-like numbers) instead of the form_key.
I have created a patch that looks for the cid instead of the form_key. It solves the issue.
Comment | File | Size | Author |
---|---|---|---|
webform.inc_.form_key-mail.patch.txt | 579 bytes | tatien |
Comments
Comment #1
philippejadin CreditAttribution: philippejadin commentedI confirm the patch works as advertised.
Comment #2
buddaYeah this made my form elements appear in the emails now. Good stuff.
Comment #3
buddaAh the selects are not working.
I have a list of checkboxes, and i select a couple of the options then submit the form. On the thankyou page i get:
warning: Illegal offset type in /var/www/html/br/marketing/sites/all/modules/webform/components/select.inc on line 258.
The email also fails to contain any of the checkbox values i selected.
Comment #4
quicksketchThis has been corrected in both the 1.9 and 2.x versions of the module.