Language always falls back to default language

Created on 25 January 2023, over 1 year ago

Problem/Motivation

No matter what langcode is set in StoryChief, the Drupal node always ends up in the default language.

Steps to reproduce

Create a post in a non-default language in StoryChief and submit it to Drupal.

Proposed resolution

In LanguageStoryChiefFieldHandler::getValue(), parent::getValue() always returns NULL. This happens because BaseFieldHandlerType::$value is private, which means LanguageStoryChiefFieldHandler can't access its value. Changing BaseFieldHandlerType::$value to protected fixes this.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇪Belgium DieterHolvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024