Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295826

When adding a new translation the entity should start from the draft state

$
0
0

Problem/Motivation

  1. Configure a site with two languages
  2. Enable content translation and content moderation for nodes
  3. Create a node in language-1 with the "published" state
  4. Translate to language-2
  5. The current state will be shown as "published", which seems odd because the translation has not been added.

This was discovered in #2915398: The moderation_state field is not computed during the creation of a new entity translation..

Proposed resolution

Use hook_entity_translation_create() to reset the moderation state.

Remaining tasks

Fix tests

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 295826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>