If a field of type "Node Reference" (supplied by the node_reference sub-module) exists on a node translated via Content Translation, the translation set of the referenced node will become corrupt after the parent node is imported multiple times. The particular "corruption" is that multiple versions of a piece of content will exist for a given language in a single translation set:
In addition to really screwing up underlying reference trees (especially as nested references pile up), it prevents editing a piece of content manually through the UI because of an "invalid" error on the "language" field.
Proposed resolution
The key will be to disable node_reference_field_prepare_translation() in the context of an Entity XLIFF import.
Problem / motivation
If a field of type "Node Reference" (supplied by the
node_reference
sub-module) exists on a node translated via Content Translation, the translation set of the referenced node will become corrupt after the parent node is imported multiple times. The particular "corruption" is that multiple versions of a piece of content will exist for a given language in a single translation set:In addition to really screwing up underlying reference trees (especially as nested references pile up), it prevents editing a piece of content manually through the UI because of an "invalid" error on the "language" field.
Proposed resolution
The key will be to disable
node_reference_field_prepare_translation()
in the context of an Entity XLIFF import.