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.

Comments

flitt1 created an issue.

nickdjm’s picture

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:
nickdjm’s picture

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