Can not change draft->publish state of node

Created on 15 January 2024, over 1 year ago
Updated 19 January 2024, over 1 year ago

Problem/Motivation

I can't save node when I try to change the status from Draft to Publish.
This is the error message: "The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved"

Steps to reproduce

I am using multilingual site with node translations. Platform also support changing of a node status (draft/publish)
The steps to reproduce are:
Create node on the default language with status published.
Change default node from published to draft
Create translation for the current node. On this step new revision is saved with data from the original node in published status.
Go to default language and change the status from Draft to Publish. The errors appear. This is because timestamps are compared. It is not correct because two different revisions are loaded to be compared. One when the node was in draft and one from the node being in published status.

Proposed resolution

To validate property (timestamp) for two objects, compare if these objects are the same, if you want to compare their properties.

🐛 Bug report
Status

Closed: duplicate

Version

10.2

Component
Entity 

Last updated 3 days ago

Created by

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

Comments & Activities

Production build 0.71.5 2024