| Project: | Webform |
| Version: | 6.x-3.4 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi, I am using webform 6.x-3.4 along with webform validation 6.x-1.3 but don't believe this is a validation issue.
I am setting up a custom email template under the 'E-Mails' tab for a type of auto-responder back to the person who has submitted the form to thank them for filling out the form and to include the values of they have submitted. Correct me if I am wrong but if I place the %email_values into the template it is supposed to generate the components of the form BUT only if they are checked in the 'Included e-mail values' section below the template? It says "The selected components will be included in the %email_values token" but I have a component unchecked but it is still being included.
Comments
#1
I'm having the same issue.
#2
I seco... err, third that. We've found that you can circumvent this partially by replacing %email_values with the variables for each of the components you want to include, e.g. %email[personal_details][first_name] %email[personal_details][surname] %email[type_of_lamp]
This, however, is not very intuitive to our junior administrators. I hope this get's addressed soon!
#3
I've committed this patch which corrects this problem. The ability to include only certain values in %email_values DOES work, but only on one of the sent e-mails. Whichever e-mail was sent first (not necessarily in the same order that is defined in the UI) that e-mail determined which components were included. Additional e-mails would all follow the first e-mails set of included components.
This patch fixes the problem by not caching the %email_values token and regenerating it for each sent e-mail (as it should, since %email_values is not guaranteed to the be the same for all e-mails).
#4
I lurb you!
#5
Automatically closed -- issue fixed for 2 weeks with no activity.