payloadcms / payloadcms/payload
Stale dialog opens incorrectly due to defaultLocalePublishOption
Open
@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
- clone the repo, install dependencies
- start the app e.g. in dev mode
- create a page in the payload backend and press "Publish in en" to publish it
- change the page (e.g. page title) press "Publish in en" to publish it
- change the page again press "Publish in en" to publish it
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.