TCA is causing entities to be save twice

Created on 19 July 2023, over 1 year ago
Updated 20 July 2023, over 1 year ago

Problem/Motivation

TCA is causing entities to be save twice

Steps to reproduce

Enable TCA and implement a simple hook_entity_presave for debugging.

function mymodule_node_presave(NodeInterface $node) {
  dump('nid: ' . $node->id());
}

Create a new node. You'll see the hook is called twice.

Proposed resolution

See attached patch.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France samy_msa

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

Comments & Activities

Production build 0.71.5 2024