Closed (fixed)
Project:
Webform
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2007 at 10:36 UTC
Updated:
24 Feb 2008 at 21:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThanks for the report. I've reproduced the problem and I'll try to have a look into how to correct this.
Comment #2
quicksketchLet's continue in http://drupal.org/node/172996
Comment #3
quicksketchArg, sorry that was the wrong issue. Please ignore :P
Comment #4
GoofyX commentedSo, quicksketch, any progress with that? Is the latest version affected by this?
Comment #5
quicksketchYes the latest version still has the problem. :(
With all the time I've been investing in getting webform ready for Drupal 6, I hope to get this fixed soon.
Comment #6
GoofyX commentedquicksketch, brendanb has posted a patch here.
Comment #7
quicksketchGoofyX, did brendanb's patch in http://drupal.org/node/215693 correct the problem fo you? If so I'd commit it right away.
Comment #8
GoofyX commentedNo, I am afraid it didn't.
Comment #9
GoofyX commentedSorry, I forgot to mention that I tested it with the latest dev version.
Comment #10
brendanb commentedProblem is similar. Not fixed by my other patch as the key|value is handled differently to standard
option values and not passed thru _webform_safe_name()
It's caused by ampersand character being POSTed back as a HTML entity. The keys then don't match.
I might issue another patch, selected value like above won't display in email sent. Same fix necessary.
Tested and patched against current 1.x-dev.
Comment #11
brendanb commentedThis patch has fix for above plus fixing selected value so it's shown in email sent.
Comment #12
GoofyX commentedConfirmed. The patch in #11 works. Values are shown (and selected in the drop-down). I have not checked the e-mail though. I also noticed that in the option value attribute, the
&is converted to&. I guess this is the correct behaviour, right?Comment #13
quicksketchAh, finally. Nice work brendanb. The problem was caused by the _webform_filtervalues function, which was encoding the values. Using the html_entity_decode works fine, but it'd be better not to encode them at all to begin with. This patch passes in the FALSE $strict flag into the filter function to prevent them from being encoded.
I went ahead and committed to to 1.x and 2.x, but if the problem still exists. Please reopen this issue. Thanks guys!
Comment #14
xqi commentedI am having trouble with the select field value in the email after i use the latest development release.
This is the key|value i used
China|1
US|2
China_OR_US|3
After the form is submitted, and the email will not contain the value of the user submitted for this field (blank).
Any thoughts?
Comment #15
quicksketchxqi, sounds like a different problem. If your options were radio buttons, the problem was probably fixed in this issue: http://drupal.org/node/218511
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.