Problem

The "Event" dropdown field on "Add email" page having options referred from all of the workflow providers available in the system. this leads ambiguity when events from multiple workflows for same groups are loaded as dropdown options.

Steps to reproduce

Observe options of field "Event" on admin/commerce/config/emails/add

Proposed resolution

We should modify it to be more informative just like the "Add a new field" have option-groups on any content-type's Manage fields page. This improvement will help administrators to select the appropriate events for the Email.

Command icon 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

vipin.j created an issue. See original summary.

vipin.j’s picture

Status: Active » Needs review
StatusFileSize
new2.36 KB

Here is the patch for the requirement of this issue, hopefully it will help.

vipin.j’s picture

The patch #2 re-rolled with improvements.

vmarchuk’s picture

I think it makes more sense to group by entity_type taken from the plugin annotations, but since we currently have no more than 10 options, that doesn't make sense. Thoughts?

morbus iff’s picture

StatusFileSize
new82.63 KB

Here's what we see when we apply this patch - more than 10 options.

(Note that we're also running a Commerce License patch of #3364645: Integrate with Commerce Email for license renewal and expiration.)

vipin.j’s picture

Patch #3 started failing on recent release 8.x-1.3

The patch rerolled.

morbus iff’s picture

Status: Needs review » Reviewed & tested by the community
khiminrm’s picture

Fixed sorting of the options inside each group.

vmarchuk’s picture

Status: Reviewed & tested by the community » Needs review

Move this back to the "Needs Review" as a lot of the code has been changed.

rszrama’s picture

Status: Needs review » Reviewed & tested by the community

Works great for me!

vmarchuk’s picture

Status: Reviewed & tested by the community » Fixed

Committed!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

rszrama’s picture

Title: The Event field options are ambiguous » Clarify event labels with grouping on email configuration form

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.