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
| Comment | File | Size | Author |
|---|---|---|---|
| eca.eca_.email_new_account_created_copy.txt | 2.52 KB | Anonymous (not verified) |
Issue fork eca_cm-3419019
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 #1
Anonymous (not verified) commentedJanner created an issue. See original summary.
Comment #2
Anonymous (not verified) commentedComment #3
davemaxg commentedThis is happening for me too. The value is there when I export config, but not when I view the action.
Comment #4
jurgenhaasI'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.
Comment #5
Anonymous (not verified) commented@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.
Comment #6
davemaxg commentedThanks @ 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.
Comment #9
mxh commentedThanks for reporting the bug. Please have a look whether MR10 may fix it or not.
Comment #10
Anonymous (not verified) commented@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.
Comment #11
mxh commentedGreat, thanks for your feedback.
Comment #13
mxh commented