Skip to content

Instantly share code, notes, and snippets.

@pvhee
Created July 15, 2014 08:52
Show Gist options
  • Select an option

  • Save pvhee/b41edc273d1030d2fc9d to your computer and use it in GitHub Desktop.

Select an option

Save pvhee/b41edc273d1030d2fc9d to your computer and use it in GitHub Desktop.
field_collection_migrate_language.patch
diff --git a/field_collection/field_collection.migrate.inc b/field_collection/field_collection.migrate.inc
index 552551b..27e9165 100644
--- a/field_collection/field_collection.migrate.inc
+++ b/field_collection/field_collection.migrate.inc
@@ -105,7 +105,7 @@ 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);
+ $entity->setHostEntity($this->hostEntityType, $host_entity, $collection->language);
}
unset($collection->host_entity_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment