Closed (fixed)
Project:
Webform
Version:
5.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2008 at 17:27 UTC
Updated:
15 Jan 2009 at 06:30 UTC
I've run into a problem with the custom subject lines in Webform.
In Drupal 5.12 with Webform 5.x-2.3, if I specify a custom subject that includes the %title token, the token is not replaced. Instead, the text "%title" appears in the email header.
If I check the default option ("Form submission from: %title") then the script works properly and the name of the form is added to the subject line.
Comments
Comment #1
NukeHavoc commentedAfter stepping through the problem, I think the issue lies in this section of the code:
It's looking for a default value for the field or a numeric value for the field, but if it's not one of those cases, the field passes through and is not filtered. If there's a token in the field, then it will pass through this loop and emerges in the email unchanged. There needs to be another conditional statement to deal with 'custom' subjects.
Comment #2
NukeHavoc commentedI haven't had a chance to delve back into the code yet, but can anyone else confirm that this is happening with their installs?
Comment #3
wansinn commentedits happening with me too...
Comment #4
quicksketchThis is now fixed: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/webform/web...
You can download the dev version from the releases page to correct the problem, wait for 2.4 to be released, or apply the above patch.
Comment #5
Rob T commentedJust wanted to note that for me, the dev version (6.x-2.x-dev from Dec. 19) while the subject issue was resolved, I instead encountered a problem with the email showing no submitted components.
I went back to 6.x-2.3 and hand patched the file as you mentioned, and all seems good.
Of course, right as I post this, I see that this issue is for 5.x version. My bad. Patch still worked for my subject line issue.