Describe the Bug
When using localizeStatus, in the edit view of a document, the retrieved document is the last draft document. This means that when editing and publishing directly (clicking on the publish button, modifications won't be retrieved).
Link to the code that reproduces this issue
https://github.com/matthieuMay/repro-draft
Reproduction Steps
The repro is a blank template with 2 new collections (Post and Guide) containing a localized title. The Post collection has { draft: { localizeStatus: true } }, the guide has { draft: true }
Go to post,
- create a new post
- fill in a title click save drafts
- modify the title click publish
- reload page, the first title will appear.
Do the same with guide, the second title will appear
Which area(s) are affected?
area: core
Environment Info
Detected the bug on a postgres project, repro is a sqlite
Describe the Bug
When using localizeStatus, in the edit view of a document, the retrieved document is the last draft document. This means that when editing and publishing directly (clicking on the publish button, modifications won't be retrieved).
Link to the code that reproduces this issue
https://github.com/matthieuMay/repro-draft
Reproduction Steps
The repro is a blank template with 2 new collections (Post and Guide) containing a localized title. The Post collection has { draft: { localizeStatus: true } }, the guide has { draft: true }
Go to post,
Do the same with guide, the second title will appear
Which area(s) are affected?
area: core
Environment Info