Non-translatable fields can only be changed when updating the original language. 2

Created on 4 May 2021, over 3 years ago
Updated 4 July 2024, 4 months ago

Hello there,

The error "Non-translatable fields can only be changed when updating the original language." appears when trying to save a translation.

Its related to #3130614: Non-translatable fields can only be changed when updating the original language
The patch posted in the issue works for the opacity problem.

Steps.
- Get an entity (a taxonomy in my case) with:
- - the option "Hide non translatable fields on translation forms" checked.
- - a color field non translatable
- - the original translation field value must contain letters
- Try to save a new translation

Then \Drupal\Core\Field\FieldItemList::equals returns false when comparing the value of the field with the original one. The problem is that a value is in lowercase and the other one is in uppercase (eg: "#e2b1b1" and "#E2B1B1").

Thank you.

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇪🇸Spain Manuel Ortiz

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.

Production build 0.71.5 2024