Saves to "und" instead of default language.

Created on 15 February 2016, almost 9 years ago
Updated 20 January 2023, almost 2 years ago

This is a "fun" edge-case:
* You have a bundle with the "multilingual" flag turned on (but internationalzation is disabled).
* The default language is *not* LANGUAGE_NONE (und), but some other language.
* You save the entity in the default language (let's say "en").
* You re-edit the entity, and save again (in my case using IEF).
* ECK saves your new value under "und" instead of "en" as it should.

ECK is assuming LANGUAGE_NONE is the default language before using field_attach_form(), which is unnecessary and inaccurate in this case.

Simply changing LANGUAGE_NONE to NULL for field_attach_form() to discern the $langcode on it's own solves this.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States heathdutton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024