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

Created on 4 May 2021, over 3 years ago
Updated 2 November 2023, about 1 year 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 this issue: https://www.drupal.org/project/color_field/issues/3130614
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

Needs review

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