When using the %value[key] token for emails, it's replaced with the field's value AND label. However, %value[key] should be replaced with the value only.

This results in %email[key] and %value[key] being replaced with identical output.

Comments

quicksketch’s picture

That's weird, does this happen for all component types or just certain ones?

extect’s picture

Yes, it looks like this is happening for all component types. I have tested with the following types: textfield, textarea, time, date, email and select.

extect’s picture

I just did a fresh install of D7 and Webform, but the problem persists. Unfortunately, I wasn't able to find the bug in the code myself.

@quicksketch
I can put the installation online and provide you access. Would you mind to have a look at it? (I guess that's a lot faster than me struggling to understand what's actually going on in the code.)

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new883 bytes

I confirmed this problem on my local and it should be fixed with this patch. I've committed it to CVS.

quicksketch’s picture

StatusFileSize
new1.03 KB

I found that this last patch didn't work with complicated types like files or dates. This patch works correctly with all data types.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.