On some non-node entities like bean and file translatable fields disappear completely from the entity form when I try to edit the respective entity in its default language. Editing the entity in other languages works as expected.
I tracked this down to entity_translation_field_attach_form() being called with the $langcode parameter set to NULL. This causes the $update_langcode being set to TRUE, which means that entity translation will try to localize the form (I think).
Patch coming...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | et-disappearing_fields-1770250-2.patch | 787 bytes | plach |
| #1 | disappearing-fields-bugfix-1770250-1.patch | 947 bytes | bforchhammer |
Comments
Comment #1
bforchhammer commentedHere we go.
Comment #2
plachActually when no $langcode is passed to f_a_form() the entity language should be used, see http://drupal.org/node/1626346. Here we use the translation handler which will eventually fall back to the default language.
Does this fix the issue?
Comment #3
bforchhammer commentedYes, your patch fixes the problem as well.
Comment #4
plachCommitted and pushed, thanks!