Problem/Motivation

When content moderation module is enabled and node is in draft moderation state, the editor form should reflect the revision node vs. the published node.

This current affects the node/view route and node/latest route (provided by content moderation).

Steps to reproduce

  1. Enable content moderation
  2. Set content moderation settings for node
  3. Use the full node edit form and create a draft version.
  4. View the node, notice the sidebar form is not reflective of the current revision state
  5. Click the "Latest version" tab - notice the sidebar form is reflecting the published version as well as the iframe.

Proposed resolution

For node/view: This is a bit tricky cause if we make the form the node revision, the preview iframe provided by decoupled_preview_iframe should also be reflecting the node revision. But... node view by intent is supposed to be always showing the published version. The 2 modules need to be consistent with one another.
For node/latest: Either disable the sidebar like we did for revisions or always set the node revision to the form. The decoupled_preview_iframe module also is not properly showing the correct latest revision in the iframe on this route and I will submit a patch for that separately.

Comments

apmsooner created an issue. See original summary.

apmsooner’s picture

Issue summary: View changes
apmsooner’s picture

jmolivas’s picture

Status: Active » Reviewed & tested by the community

MR seems ok to merge it

apmsooner’s picture

Status: Reviewed & tested by the community » Fixed
apmsooner’s picture

Status: Fixed » Closed (fixed)