payloadcms / payloadcms/payload

Stale dialog opens incorrectly due to defaultLocalePublishOption

Open
#16,376 1 comment 5 reactions 1 assignee View on GitHub

@PatrikKozak is already working on this.

Since Jul 2, 2026.

stale v3
Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

Having more versions of a collection the stale dialog opens after publishing and changing it, even if it is impossible that the collection has been changed by another user. This happens if the autosave in versions configuration of that collection is disabled and the page/collection config has a localized field in combination with the global defaultLocalePublishOption configured to 'active'.

Link to the code that reproduces this issue

https://github.com/PH1P5/payload-stale-issue-with-defaultLocalePublishOption

Reproduction Steps
  1. clone the repo, install dependencies
  2. start the app e.g. in dev mode
  3. create a page in the payload backend and press "Publish in en" to publish it
  4. change the page (e.g. page title) press "Publish in en" to publish it
  5. change the page again press "Publish in en" to publish it
  6. now, having 2 versions of the page, change its content (e.g. page title)
    actual: Stale dialog appears
    expected: No Stale dialog - Editors are able to proceed changing the page content
Which area(s) are affected?

Not sure

Environment Info
Since payload version 3.78.0 we see this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.