Problem/Motivation
The mail.default_subject defaults to Webform submission from: [webform_submission:source-entity] and the webform_submission:source-entity] is blank when a form is submitted without a source entity.
Steps to reproduce (see attached webform)
- Create a new webform with a text field.
- Add an email handler with debugging enabled.
- Test the form
- Confirm email subject is "Webform submission from:"
Proposed resolution
Add and use new [webform_submission:source-title] token in the default email subject.
Remaining tasks
- Add token
- Test changes
- Provide update hook
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3087865-5.patch | 5.68 KB | jrockowitz |
| #3 | 3087865-3.patch | 2.58 KB | jrockowitz |
| #2 | Issue 3087865 Webform email handler default subject is missing title when email is sent Webform Demo Site.png | 609.18 KB | jrockowitz |
| #2 | webform.webform.issue_3087865.yml | 4.93 KB | jrockowitz |

Comments
Comment #2
jrockowitz commentedComment #3
jrockowitz commentedComment #4
jrockowitz commentedComment #5
jrockowitz commentedComment #6
jrockowitz commentedComment #8
jrockowitz commented