Content Translation does not use EntityOwnerInterface properly

Created on 7 February 2017, over 7 years ago
Updated 1 June 2024, about 1 month ago

Problem/Motivation

If you have an entity type that implements EntityOwnerInterface but does not use uid for the owner field, then content translation will add a content_translation_uid field instead of using the existing owner field.

Proposed resolution

  1. Remove the $this->checkFieldStorageDefinitionTranslatability('uid') check in ContentTranslationHandler::hasAuthor()
  2. Use EntityOwnerInterface::setOwner() in ContentTranslationMetadataWrapper::setAuthor() if there is no content_translation_uid field

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Content translationΒ  β†’

Last updated 6 days ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

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