Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | webform_email_value-d7.patch | 1.03 KB | quicksketch |
#4 | webform_email_value-d7.patch | 883 bytes | quicksketch |
Comments
Comment #1
quicksketchThat's weird, does this happen for all component types or just certain ones?
Comment #2
extect CreditAttribution: extect commentedYes, it looks like this is happening for all component types. I have tested with the following types: textfield, textarea, time, date, email and select.
Comment #3
extect CreditAttribution: extect commentedI 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.)
Comment #4
quicksketchI confirmed this problem on my local and it should be fixed with this patch. I've committed it to CVS.
Comment #5
quicksketchI found that this last patch didn't work with complicated types like files or dates. This patch works correctly with all data types.