611,614c611,612 field_collection.module < - field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, $language); < + $entity_langcode = entity_language('field_collection_item', $field_collection_item); < + field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, $entity_langcode); < + --- > field_attach_form('field_collection_item', $field_collection_item, $element, $form_state, $language); > 1239c1238 field_collection.test < + // This test fails and it not really clear if it'a problem of field_collection or of --- > + // If this test fails it is maybe not clear if it'a problem of field_collection or of 1241,1242c1240,1241 < +// $fc_items = entity_load('field_collection_item', $fc_item_ids); < +// $this->assert(empty($fc_items), t('The field collection item has been removed from the database.')); --- > + $fc_items = entity_load('field_collection_item', $fc_item_ids); > + $this->assert(empty($fc_items), t('The field collection item has been removed from the database.'));