Download & Extend

%value[key] returns field labels in emails

Project:Webform
Version:7.x-3.4-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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

#2

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.

#3

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.)

#4

Status:active» fixed

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

AttachmentSize
webform_email_value-d7.patch 883 bytes

#5

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

AttachmentSize
webform_email_value-d7.patch 1.03 KB

#6

Status:fixed» closed (fixed)

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

nobody click here