When viewing or editing a model containing an Easy Email action, the previously entered data for the object field for that action is not displayed

Created on 3 February 2024, 10 months ago
Updated 19 March 2024, 9 months ago

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

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Janner

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024