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

Command icon 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

joachim created an issue. See original summary.

tyapchyc’s picture

Assigned: Unassigned » tyapchyc

tyapchyc’s picture

Assigned: tyapchyc » Unassigned
Status: Active » Needs review