Problem/Motivation

When saving a new entity using an entityreference field and the standard inline_entity_form widget the items are saved with the LANGUAGE_NONE langcode, and not the default language. E.g. 'en'. Like all other fields are. Entity translation is being used, but this is not the problem here.

Proposed resolution

Use field_language() in inline_entity_form_field_attach_submit() to get the correct langcode for the field, taking into account translation handlers etc..

Remaining tasks

User interface changes

None

API changes

None

CommentFileSizeAuthor
#1 2373827.patch733 bytesdamiankloip
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

Status: Active » Needs review
FileSize
733 bytes
Fidelix’s picture

Status: Needs review » Closed (duplicate)