Closed (fixed)
Project:
Webform
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2007 at 15:50 UTC
Updated:
30 Mar 2008 at 01:30 UTC
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 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.