Translatable inline block labels cause issues

Created on 16 April 2024, 2 months ago

Problem/Motivation

Because we set the default value of inline block labels to a translatable string, saving the parent entity with changes to untranslatable fields becomes impossible.
This is due to the fact that Drupal will detect changes in the layout while saving because the different languages will get different results for the block labels.

Steps to reproduce

  1. Install RS as usual (make sure to have at least 2 languages and a layout builder enabled CT)
  2. Add a non-translatable field to the CT
  3. Create a node and translate it
  4. Add at least 1 new block to both languages
  5. try to change the non-translatable field in the original language and save

Proposed resolution

Remove the translatability of the default value being set for the inline block label (see rocketship_core_form_layout_builder_update_block_alter) or revise this whole "functionality".

Keep in mind though, to fix this for existing entities, we will still need to override the value or have the label as textfield so a proper string value is saved.

πŸ› Bug report
Status

Active

Version

6.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium L_VanDamme

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

Comments & Activities

Production build 0.69.0 2024