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.
If any field that requires multiple values (grid, select, date, time) is added to the form and an e-mail is configured, several notices are thrown:
# notice: Array to string conversion in /Users/nate/Sites/drupal6/sites/all/modules/webform/webform.module on line 1993.
This is caused by the _webform_filter_values() function taking a $submission parameter, then it trying to create %cid[cid] and %value[name] tokens. Sometimes the value is not a string be an array. We'll need to convert these into strings (perhaps through the existing theme_webform_mail_*() functions) so that they can be used in tokens. It will also increase the consistency in the e-mails if the same rendering is used in both places.
Comments
Comment #1
quicksketchFixed as noted in #682492: Any field with multiple values (grid, select, date, time) does not create proper mail tokens.