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

Created on 4 May 2021, about 3 years ago
Updated 10 April 2024, 3 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

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.69.0 2024