If I click the +add button in a node view to add a new field collection, the form of the field collection appears but after submit the entity doesn't show in the node view. If I create the field collection item in the node edit form, everything works finde.

Comments

remaye’s picture

Same issue for me (7.x-1.0-beta4+4-dev)
Any idea ?

remaye’s picture

Bump the issue providing more information:

When I add a fieldcollection item using the "add" link, the item does not appear neither in the node view and in the node edit form.

In the data base :
- all the fields related to the FC item are created in their own table
- the FC item is created in the 'field_collection_item' table with the correct FC field name [FC_name]
- the FC item is created in the 'field_[FC_name]' table
but :
1- the language of the FC item is not correct : when adding FC item with the node edit form, the language is 'fr' or 'en' but when adding it through the "add" link the language is set to 'und'
2- also the "delta" seems not correct : the delta is set regarding to the delta of the other items with the same language, so items with 'fr' and items with 'und' can have the same 'delta'. Not sure but I would say it will not be correct for content allowing undefined language...?

However, in my case the problem is not the point (2) but rather the point (1) as the node type including the FC is defined as : "multilingual support enabled with translation " and "Require language (Do not allow Language Neutral)"

The FC field is defined as "Users may translate this field"

All the fields composing the FC are defined as "Field translation:This field is shared among the entity translations."

Module version is : 7.x-1.0-beta4+11-dev patched with https://drupal.org/node/1683784#comment-6431954

rmedard’s picture

I had exactly the same issue. I could add FC items and get them show up on the node page only if I edited the node and not if I used the add link.
I just disabled translation on the FC field along with its inner fields(probably not necessary) and everything works fine.

jmuzz’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Support for translation involving field collections wasn't supported when this issue was created, but it has since been added so this should be working now.

taocode’s picture

I noticed this problem when I updated to beta12. I disabled translation for the Field, which produced an error. I was able to re-enabled translation (without copy) and now the Add link on the view page works for me.