Closed (duplicate)
Project:
Drupal core
Version:
8.8.x-dev
Component:
content_moderation.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Nov 2017 at 11:18 UTC
Updated:
14 Oct 2020 at 18:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
timmillwoodThis is a little change in direction for this issue to provide a content_moderation specific fix.
Comment #6
sam152 commentedI wonder if changing this now would be a significant enough change in behaviour that this should be considered a feature request and be made configurable?
Comment #7
kennethos commentedThere's a validation issue when using patch #2. The validate function in "ModerationStateConstraintValidator.php" checks if the original state can transition to the new state. When adding a new translation, the original state should be "draft" instead of the state of the source translation.
Comment #8
jens.de.geit commentedFirst the patch #7 is not working on 8.8.x we should look for a re-roll.
Secondly this issue isn't a feature request but a bug in the content_moderation module. The state of the translation should never be shared with the original node object because a translation needs the same flow to get validated as the original node.
Comment #9
jens.de.geit commentedreroll of patch #7 for core 8.8.x
Comment #10
sam152 commentedWhat about the existing users of the module who are already using a translation workflow which depends on starting from the state of the original translation?
Comment #11
bahuma20This is a duplicate of #3150294: New translations for moderated nodes are not created in the initial workflow state.
The solution in this 3150294 is better than the one in this issue, because it doesn't add the functionality in a hook but directly where the problem is.
If you see this different, feel free to open the issue again.
Comment #12
brenk28 commentedFor what it's worth, trying to solve the issue in #3069674: Translated node disappears (from backend UI and public site) (which is seemingly related to this), the above 2927455-8.patch fixes the issue for us, though 3150294-5.patch in #3150294: New translations for moderated nodes are not created in the initial workflow state did not.