Domain Access compatibility with content translation

Created on 16 June 2023, over 1 year ago

Drupal Version

10.x

Domain module version

2.x

Problem/Motivation

I have a site with content translation enabled. field_domain_access is configured as untranslatable. Each translations of entity should have the same assigned domains. The untranslatable fields are hidden (untranslatable_fields_hide) on the entity translation form. I have multiple editors with different domain assignments. It not possible to save the translations unless the editor has the same domain assignments as the content entity.

It occurs an entity validation error during entity save. Content Translations sets the domain fields to #access => FALSE in \Drupal\content_translation\ContentTranslationHandler::entityFormSharedElements. This happens after the domain_access_form_node_form_alter. I tried to change the order by converting it to a #process callback.

Expected Behavior

Domain Access field is hidden, existing values are kept as is.

Actual Behavior

Steps to reproduce

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany webflo

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

Comments & Activities

Production build 0.71.5 2024