Commit 2291aebf authored by Morpheus80ta's avatar Morpheus80ta Committed by Joel Muzzerall
Browse files

Issue #2298877 by sylus, marco.pagliarulo: Migration doesn't take into account...

Issue #2298877 by sylus, marco.pagliarulo: Migration doesn't take into account language of host entity
parent d797efab
......@@ -106,7 +106,13 @@ class MigrateDestinationFieldCollection extends MigrateDestinationEntity {
$updating = FALSE;
$host_entity = entity_load_single($this->hostEntityType, $collection->host_entity_id);
entity_get_controller($this->hostEntityType)->resetCache();
$entity->setHostEntity($this->hostEntityType, $host_entity);
if (isset($row->language)) {
$entity->setHostEntity($this->hostEntityType, $host_entity, $row->language, TRUE);
}
else {
$entity->setHostEntity($this->hostEntityType, $host_entity);
}
}
unset($collection->host_entity_id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment