Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2014 at 17:51 UTC
Updated:
26 Feb 2017 at 09:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mglamanConfirmed, it is an issue with...
on a multilingual site. If there is a check for $langcode being empty and setting it as LANGUAGE_NONE; it fixes the issue. For some reason the Image field doesn't populate properly on the entity edit form unless $langcode is explicitly set.
Moving this to inline_entity_form, patch to follow.
Comment #2
mglamanApply a fallback to set language code to undefined if entity_language empty
Comment #3
mglamanComment #4
lsolesen commentedI can confirm that this works.
Comment #5
msamavi commentedThe same issue here, but the patch did not work for me!
Comment #6
bojanz commentedThis looks like a revert of #1558632: Pass correct langcode to field_attach_form, newly created entities. which means we need more research on which one's correct.
Comment #7
energee commentedThe above patch does not include a fix on the default entity form.
Comment #8
energee commentedPatch attached.
Comment #11
smccabe commentedComment #13
mattew commentedGot the same issue with a custom entity (not a commerce product) and this patch solved the issue for me. The images are now visible in my field using IEF, FYI here is a summary of my setup:
Would you like me to test something more on my implementation?
Thanks for the patch
Comment #14
matthiasm11 commentedPatch #9 from the referenced issue solves this problem at a higher level, with entity translation support instead of hardcoded LANGUAGE_NONE.