Moderation state missing on locked entities

Created on 15 January 2019, over 5 years ago
Updated 2 April 2024, 5 months ago

It appears theres no content lock check in place when changing moderation states.

Given: a node that has a published version and a draft version.
Following steps to reproduce:

  1. Open the node edit form with user 1
  2. In a separate (incognito) window open the nodes draft page with user 2
  3. With user 2, change the moderation state to "Published"
  4. Save the node with user 1

Step #3 should not be possible.
Step #4 will show a "The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved." error message.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium rp7

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024