Empty body field in translation

Created on 21 February 2024, 10 months ago
Updated 5 March 2024, 10 months ago

Problem/Motivation

The body field for a french node translation is empty when using the BodyFormat and BodyValue keys in the migration. If the migration is changed to use an object (such as body: { value: "", summary: null, format: richtext }), the migration populates the body field as expected.

Steps to reproduce

1. Create an English and French migration using the BodyFormat and BodyValue keys.
2. Run the English Migration - it will successfully populate the body field.
3. Run the French Migration - the body field is empty.

Proposed resolution

If the BodyFormat and BodyValue keys are supported in the default language migration, they should be supported in translation migrations as well.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @flitt1
  • 🇨🇦Canada nickdjm

    Just to update this issue.

    bodyValue, bodyFormat, and other field properties like that are going to be removed in v3. We've been running into a handful of issues with it, and it's much cleaner to just have the content in proper objects.

    The only accepted format moving forward will be:

    body:
      value:
      format:
    
  • 🇨🇦Canada nickdjm

    The json format will work as well, but that's more so because both json and yaml are valid yaml.

Production build 0.71.5 2024