Unexpected data in reference fields results in incorrect change detection

Created on 21 August 2023, 10 months ago

Problem/Motivation

I noticed that an ECA handler I had that checked on a changed field incorrectly fired and sent e-mails on importet content.

Debugging a bit, I noticed that the field had a drupal_internal__target_id property that confuses the check in \Drupal\eca_content\Plugin\ECA\Condition\EntityFieldValueChanged. Also the target_id seemed to have the original value still?

In my case, it doesn't really matter, as I added another condition to suppress the condition always for content that is managed by entity_share, but still wanted to report it.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland Berdir Switzerland

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

Comments & Activities

Production build 0.69.0 2024