The migration that happens when making a field translatable is fantastic. For content types using field translation, it just works. For content types that use node translation, existing values don't get converted properly.

Scenario:

- Blog content type, uses field translation (via Entity Translation)
- Article content type, uses node translation (via Translation)
- Field called field_workflow shared between Blog and Article
- Four languages enabled

Up until now field_workflow has not been translatable. Now we want to make it translatable and update lots of existing content. Although we would like to migrate Articles to use Entity Translation, we're not quite ready to do that yet.

Running "Enable translation" for field_workflow, checking the option for "Copy translations", everything works perfectly for Blogs. For the existing Articles, however, field_workflow appears to have no value when opening a node form.

Comments

milesw’s picture

What seems to be happening is that field_workflow still uses a language key of LANGUAGE_NONE. Since the field is now translatable, the language key needs to match the node language.

This patch allows field values to be re-keyed for node translations during the "Enable translation" process.

milesw’s picture

Status: Active » Needs review

Updating status.

Status: Needs review » Needs work

The last submitted patch, 1979406-1-entity-translation-values-not-filled.patch, failed testing.

milesw’s picture

Status: Needs work » Needs review
StatusFileSize
new821 bytes

Oops, bad path in previous patch.

milesw’s picture

Oops, bad path in previous patch.

plach’s picture

Status: Needs review » Fixed

Looks good and fixes the issue. Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

minor edit for clarity

  • Commit 50edb30 on 7.x-1.x, factory, et-fc, revisions authored by milesw, committed by plach:
    Issue #1979406 by milesw: Field values for node translations not filled...

  • Commit 50edb30 on 7.x-1.x, factory, et-fc, revisions, workbench authored by milesw, committed by plach:
    Issue #1979406 by milesw: Field values for node translations not filled...