tableau-mkt-archived / entity_xliff

Drupal module that provides an API for entity serialization in the XLIFF format.
https://drupal.org/project/entity_xliff
2 stars 0 forks source link

Importing a node with a field collection field over an existing translation fails. #134

Open jkopel opened 7 years ago

jkopel commented 7 years ago

When importing a node with a field collection field the first import will succeed, but any subsequent imports fail.

It looks like it is related specifically to multi-cardinality field_collection fields. Somewhere along the line we are grabbing the wrong entity to use as the "host".

The specific problem manifests itself in src/Drupal/Translatable/Content/FieldCollectionTranslatable.php getTargetEntity() around line 68. src_ _fieldcollectiontranslatable_php_-_entity_xliff_-____sites_entity_xliff_

build_ _fieldcollectiontranslatable_php_-_entity_xliff_-____sites_entity_xliff_