Skip to content

localizeStatus: fail to retrieve last version #16395

@matthieuMay

Description

@matthieuMay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreCore Payload functionalitystatus: needs-triagePossible bug which hasn't been reproduced yetv3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions