issue with media entity references

Created on 11 January 2023, almost 2 years ago
Updated 26 April 2023, over 1 year ago

Problem/Motivation

Added a media entity reference field to one taxonomy vocabulary, this field is not preserved in the export / exports incorrect values.
(upgraded from v.2.0.2 to 2.0.4 = the entity reference is no longer breaking the export, but does not work as expected / does not import the values back)

Steps to reproduce

Add a new field of type 'entity reference' > 'media' to a taxonomy vocabulary, add an image for the terms, field is listed in the export but in my case it outputs one term from a different vocabulary.

Proposed resolution

Export the correct reference for the field

Example export

Here is an example of one entry's export result (note changed identifying values):

    -
      vid: program
      tid: '111'
      langcode: en
      name: 'Mechanical Engineering'
      description__value: "<p>As a Mechanical Engineering student, you’ll study all the fundamentals of mechanics"
      description__format: filtered_text
      weight: '16'
      parent: '0'
      uuid: x11111xx-1xxx-111x-x1x1-11111111x1111
      field_link:
        -
          uri: 'https://example.com/mechanical-engineering'
          title: 'Go to Mechanical Engineering'
          options: {  }
      field_program_feature_image:
        -
          name: 'South Park'
          vid: state_schools

When exporting, for some reason, the value from a separate vocabulary is listed under the 'field_program_feature_image' rather than the actual image reference.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024