Created
July 15, 2014 08:52
-
-
Save pvhee/b41edc273d1030d2fc9d to your computer and use it in GitHub Desktop.
field_collection_migrate_language.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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