Fix integration with content moderation in multi-lingual scenarios

Created on 30 July 2018, about 6 years ago
Updated 31 July 2024, about 2 months ago

Problem/Motivation
Drupal 8.5 introduced changes in multilingual fields approach. Fields which are marked non-translatable are hidden in translation edit form. When used in combination with content moderation 'Hide non translatable fields on translation forms' setting is enforced. Thus it becomes impossible to edit entity translations.

Steps to reproduce
1. Install Drupal 8.5.
2. Enable multilingual modules, add at least 2 languages.
3. Enable content moderation.
4. Create a content type with entity reference field using inline_entity_form widget.
5. Make referenced entity type translatable and entity reference field not-translatable.
6. Create a node and add a translation to it.
Result::
When you edit translation for for this node, entity reference field will be hidden and you'll not be able to edit the entity translation.

Note:
There is a thread with the same issue for paragraphs https://www.drupal.org/docs/8/modules/paragraphs/multilingual-and-conten...

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇲🇩Moldova andreyjan

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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