Problem/Motivation

I work with Content modreration and Content Translation. I use the node API to create content, each new update for a content, it create a new revision, but only by interface, we publish the content. So when I go in the interface, I edit the content to publish it, the fields that are not translatable value they haven't the last update value (from the last revision).

I already use the patch committed in this issue https://www.drupal.org/project/drupal/issues/2955321

Steps to reproduce

I create a fresh Drupal 8.9 install for testing the bug, but I think we should have the same problem with drupal 9

I have a content type "article", and just set the fields "title", "body" and "tags". Only "tags" field is translatable.

I create the source content but for my real situation, this content is not published. Drupal create a revision with the ID 47.

After this, I create the translation content (I change only the title and the body), and I publish. Drupal create a revision with the ID 48

For the moment, there is no problem yet.

Then I change the "tags" field, I adding a new value. I Still not publish this content source and the ID of this new revision is 49

this is where it gets complicated

If I use the fix code in reply #26 In the translated content, when I modified the node form, the field "untranslatable" is displayed. But the last value of the source content (in the last revision) isn't showed. The node form display the value of "tag" field from the revision 47 not 49.

And with or without the fix code, when I display the content translated (published) the value of "tags" field is the same of the content source revision corresponding to the first publish content translation (47) not the last change (49).

Comments

niknak created an issue. See original summary.

niknak’s picture

Issue summary: View changes
larowlan’s picture

Status: Active » Closed (duplicate)
Issue tags: +Bug Smash Initiative

The patch in the referenced issue is not committed. I.e. you're running experimental code. Please comment on that issue listing the side effects you're seeing here.

niknak’s picture

Status: Closed (duplicate) » Active
StatusFileSize
new1.83 MB

I already comment in referenced issue, but no reaction in more than a month.

So I create this issue, maybe the problem is not similar.

The referenced issue insert the non translated field nothing more.

pameeela’s picture

@niknak, understand your frustration but creating a new ticket just splits the attention, it won't get a better result.

If you feel that you have found a bug that is different to the one reported in #2955321: Unable to change non-translatable field value on translatable content with content moderation enabled then you can create a new ticket, but if the bug is a result of a patch from that ticket and doesn't exist without the patch, then it needs to be captured and fixed in the original ticket.