Problem/Motivation
There is an extra comma rendered in email template for which user greetings are disabled.
Steps to reproduce
- Install Open Social
- Go to admin/config/opensocial/swiftmail and add for example "register_no_approval_required" under "Disabled email message keys with user greeting"
- Sign up with new account so you will trigger sending of email with template "register_no_approval_required"
- The email will be send with an extra comma just below the header

Proposed resolution
Do not render heading in email template when it is empty.
Remaining tasks
This changes need to be applied also for related issue #3259374: Create a new template for the new email engine
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2023-07-14 at 16.30.50.png | 53.43 KB | zanvidmar |
Issue fork socialbase-3374705
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
zanvidmar commentedComment #4
zanvidmar commentedComment #5
zanvidmar commentedComment #7
robertragas commentedComment #8
zanvidmar commentedComment #9
zanvidmar commentedComment #11
tbsiqueira