Langcode not updating when adding weight as new field

Created on 28 March 2024, 9 months ago

Problem/Motivation

Steps to reproduce

Create a few nodes
Translate them to another language
Add the weight field to them
Create the view.
Sort them in default language (should work)
Sort them in translated language (weights are not updated)

Proposed resolution

Change `$entity->getEntityTypeId() . '__' . $this->field . '_langcode';`
to `$entity->getEntityTypeId() . '_field_data_langcode';`

This way if the field doesn't have a value yet it will set the value for the new weight in this translation.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇷Brazil igoragatti

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024