Content reverts to previous version when editing with Content Moderation enabled

Created on 11 October 2024, 7 months ago

Problem/Motivation

Content reverts to the previously saved version when editing content with Content Moderation enabled using Mercury Editor.

Steps to reproduce:

  1. Enable Mercury Editor and Content Moderation modules.
  2. Enable Mercury Editor for a Content Entity at /admin/config/content/mercury-editor.
  3. Enable Content Moderation for the same Content Entity at /admin/config/workflow/workflows.
  4. Add a content entity of the type that now has Content Moderation and Mercury Editor enabled. Click "Save" to originally save the entity.
  5. Make an edit and click "Save" again. The content will revert to the previous version.
  6. The expected behavior would be that the content stays up-to-date after saving without reverting to the previous version.

Proposed resolution

Content is displayed with updates after "Save" is clicked in Mercury Editor.

πŸ› Bug report
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States briangervais

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @briangervais
  • πŸ‡ΊπŸ‡ΈUnited States briangervais

    I'm unable to reproduce the issue on a fresh Drupal/Mercury/Content Moderation install with no code customizations so I'm thinking it must be something in our custom codebase. I'm going to close the issue until further investigation can be done. Thanks Aten for the sweet editing tool!

Production build 0.71.5 2024