Steps to reproduce:
1. Install Drupal (tested on 8.7.5) in English
2. Enable modules content_moderation, content_translation
3. Add a Language (e.g. German)
4. Enable translations of Article and Editorial Workflow
5. Create a new Article content and set it into published state in default language (English):
6. Add a German translation to the Article content, save it to Draft state
7. Go to /admin/content, see only the English version of the article appears in the List
Expected is that in point 7, admin content view shows English (Published) and German (Unpublished) versions of the article.
Note: If you keep both translations in Draft state, both items properly appear in the admin content view
Side Bug 1: The "moderated content" view properly displays the draft German article, however the "Content Type" column is empty.
Side Bug 2: If you edit the German translation of the Article and change moderation state from Draft to Published, it appears correctly in the admin content view. However, as you change the state of the Article from Published back to Draft, it appears in the admin content view with wrong "Published" state.
Issue fork drupal-3071916
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mirsoft commentedComment #3
luca_loguercio commented@mirsoft We're also experiencing the same bug. Were you able to resolve it? Thanks
Comment #6
hmdnawaz commentedAny update on this issue. I am having the same issue.
Comment #8
kunalkursija commentedI faced this issue too and indeed this seems to be associated with nodes following a "Content Workflow"(OR In other words, the content moderation module).
Comment #9
kunalkursija commentedSo I looked into this a bit and found out that the
admin/contentpage is a view fetching data from thenode_field_datadatabase table. And after looking at the data in this table, I found below:Comment #10
berdirYes, this might be unfortunate, but I don't really see how this could be changed. To put #9 in different words, admin/content lists default revisions. Drafts, be that new translations or e.g. changing the title of a published translation are now showing up there.
Comment #11
kunalkursija commentedTrue. For moderated nodes, The 'default revision' seems to be playing an important role and it makes sense to only keep 'published' & 'archived' states have default revision flag enabled(just what editorial workflow does).
I also tried to imagine creating the content page view from 'content revisions' and it's also not helping. As to fetch node data, Views creates 'joins' to 'node_field_data' table which only holds 'default revisions'.
Comment #12
mowens commentedCheck out this thread. After this patch, newly saved translation drafts show on admin/content page.
https://www.drupal.org/project/drupal/issues/3088790
Comment #15
pere orga@mowens I can reproduce this, thanks!
I may be missing something (very likely), but is there a reason why new translations should always not be the default revision? E.g. what's wrong in having a "draft" revision as a default revision if no published revision exists for that language? For the visitors, it would be an HTTP 403 in both cases
Comment #16
berdirBecause only one revision can be the default revision *across all languages*. And yes, each revision and new revision always contains all translations.
Comment #17
pere orgaThanks again @Berdir, this is now starting to make more sense to me.
Comment #20
eduardo morales albertiIs it a solution or a "workaround" to see the draft versions on the content view?
Comment #21
dullarobin commentedI'm also facing the same issue with Drupal 9.50. Steps to reproduce are given below
a. Create original content in Draft mode
b. Create the first translation in Published mode
c. Create a second translation in Draft mode
Only the first 2 pages appear on the content view page
Thanks