Cant create email to be sent to users with a role

Created on 13 January 2025, about 1 month ago

Problem/Motivation

When first creating an email, the option to send the email to "Users with a role" results in an error message.

Steps to reproduce

Go to /admin/commerce/config/emails and click Add email. Enter the fields, and under the option "Send this email to", select "Users with a role", and choose any role. Click Save. An error message is shown saying that "Email field is required."

Proposed resolution

Dont do validation on the Email field when the "users with a role" is selected.

Workaround

When creating an email, set "Send this email to" to "Specific email address", and Enter any value as the email. Save the email. Then select Edit, and change "Send this email to" to "Users with a role". This time, when you save, no error is generated.

🐛 Bug report
Status

Active

Version

1.6

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024