When creating a new webform, if a field's key is changed from the default numeric value, the field would be absent from the generated email. The problem was due to the fact that the theme_webform_mail_fields was interchanging $form_key and $key.

Attached patch includes slightly re-written version of function to fix problem. Has been tested with hierarchical forms with upto two levels.

CommentFileSizeAuthor
webform_patch.txt3.85 KBscafmac

Comments

yched’s picture

duplicate of http://drupal.org/node/155743
It's probably best to keep this issue in one place, so I'm marking this as a duplicate.

Your patch is different than the one in the original issue, so you might want to post it over there, and let quicksketch review...

BTW, setting your own patch to 'ready to be committed' is no good practice (except maybe for absolutely trivial one-liners). You should set it to 'needs review' first.

yched’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

forgot to actually set the status

BarisW’s picture

This patch doesn't either work correctly.

It only submits the values of the last page, if you use the BREAK element.
The results of the other pages are not mailed. They are saved however, I can see them on the website.