Problem/Motivation

After configuring and saving an action to send an email using Easy Email, when you return to that model to either view it or edit the action, the data that you entered for the object field is not displayed. However, if you export the model, the data is included in the export.

If you make a subsequent save of the model, you may find that the Easy Email action has the value stripped from the object field, causing the model to fail with a PHP error when it is triggered.

I have about 15 models that include this action, and the behavior described above is consistent across all of them.

Drupal: 10.2.2
ECA Classic Modeller: 1.0.7
ECA: 1.1.4
Easy Email: 3.0.0-beta3
PHP: 8.1.27

Steps to reproduce

1. Install the Easy Email module and create an email template to use with the action.
2. Either create a new model or edit an existing one.
3. Add the action to send an email using Easy Email (in my case this is preceded by actions to create and save a new Easy Email entity and a couple of actions to set field values for that entity).
4. Enter a value in the object field )in my case it is the token value of the previously created entity)
5. Save the action.
6. Save the model.
7. View the model and expand the table showing its actions.

You should find that for the Easy Email action it shows “nothing” for the object field.

8. Click on the link to edit the Easy Email action.

You should find that the object field is empty.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
eca.eca_.email_new_account_created_copy.txt2.52 KBAnonymous (not verified)

Issue fork eca_cm-3419019

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

Anonymous’s picture

Janner created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes
davemaxg’s picture

This is happening for me too. The value is there when I export config, but not when I view the action.

jurgenhaas’s picture

I'm not a maintainer of the classic modeller, but I know that it doesn't implement the ECA API for modellers. It does state on its project page that it's really only a low-level tool. My personal recommendation: please use the bpmn_io modeller.

At least, you could try if the problem above can be reproduced there as well.

Anonymous’s picture

@jurgenhaas

Sadly I can't use the bpmn_io modeller due to it currently not being accessible to screen readers, so someone else will need to see if the same issue occurs with that too.

davemaxg’s picture

Thanks @ jurgenhaas, bpmn_io is working for me. I started with classic as it seemed an easier way to get started with ECA, but I can see how bpmn is much richer.

mxh made their first commit to this issue’s fork.

mxh’s picture

Version: 1.0.7 » 1.0.x-dev
Status: Active » Needs review

Thanks for reporting the bug. Please have a look whether MR10 may fix it or not.

Anonymous’s picture

@mxh

Thank you for investigating this.

After patching with MR10 and clearing cache, the object/entity value is displayed as expected both when viewing the table of actions for a model and when editing an action.

Viewing, editing, and saving an action or model throws no error messages.

mxh’s picture

Status: Needs review » Reviewed & tested by the community

Great, thanks for your feedback.

  • mxh committed 91c1a43f on 1.0.x
    Issue #3419019 by Janner: When viewing or editing a model containing an...
mxh’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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