EntityReference processor uses wrong field name to write data to entity

Created on 2 July 2025, 3 months ago

Problem/Motivation

The EntityReference processor writes the value for a reference field based on the entities it has imported:

        $processed_entity->set($field_public_name, $field_values);

However, $field_public_name is the name for the field in the JSONAPI data:

      foreach ($entity_json_data['relationships'] as $field_public_name => $field_data) {

This should use $field_internal_name name instead.

It's working ok because in most cases, the field name is the same.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Entity Share Client

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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