v4 localizeStatus: unpublishing one locale validates its content, so an invalid published locale can be neither republished nor unpublished
Maintainers usually reply within 1 day
@pardeepsinghverma is already working on this.
Since Nov 17, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- postgresql, typescript
- Domain
- backend, localization
Research direction
Start with updateDocument and shouldLimitValidationToSubmittedFields in collections/operations/utilities/update.ts, then trace the locale unpublish request described in the issue. Use the linked repro-4.ts reproduction to confirm that unpublishing fr fails on the invalid localized field; done means unpublishing succeeds without validating that locale's content.
Written by the indexing model from the issue text.
Description
Describe the Bug
With versions.drafts.localizeStatus, a published locale can become invalid without anyone editing it, and then it can be neither republished nor unpublished, through the API or the admin.
- A collection has a non-localized
arraywhose items have a required localized field. - Publish
enandfr. - Add an item and publish
enonly.frstayspublished, but the new item has nofrvalue. Nothing validatesfrat this point (that may be intended). - Republishing
frfails validation, which is expected. - Unpublishing
fralso fails validation.- The admin's "Unpublish in French" (
UnpublishButton) sendsPATCH /api/pages/:id?locale=frwith{ _status: 'draft' }. updateDocumentvalidates the locale's whole content for that request.- Only
unpublishAllLocaleslimits validation to the submitted fields (shouldLimitValidationToSubmittedFieldsincollections/operations/utilities/update.ts).
- The admin's "Unpublish in French" (
So the only way to take the broken locale offline is to edit the database.
Expected: unpublishing a locale does not validate its content, as with unpublishAllLocales. It would also help if publishing one locale warned that other published locales are now invalid.
Link to the code that reproduces this issue
https://github.com/elghaied/payload-v4-reproductions (repro-4.ts)
Reproduction Steps
pnpm install, thencp .env.example .envand pointDATABASE_URLat an empty PostgreSQL databasepnpm repro repro-4.ts
Output:
(a) fr published read: ["A-fr","B"] fr _status: published
(b) republish fr FAILED: The following field is invalid: Items 2 > Label
(b) unpublish fr FAILED: The following field is invalid: Items 2 > Label
("B" is the en fallback; the fr value is empty.)
Which area(s) are affected?
area: core (versions / localization), area: ui (Unpublish in locale)
Environment Info
payload: 4.0.0-beta.9
@payloadcms/db-postgres: 4.0.0-beta.9
Node.js: 24.22.1
PostgreSQL: 17.10
(local API only, no Next.js app)
- Dominant language
- TypeScript
- Stars
- 45.8k
- Forks
- 4.4k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 251
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from payloadcms/payload
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Document bar (.doc-controls__content) overflows a 375 px viewport, clips "Created" and fails axe scrollable-region-focusablePossibly taken A pull request linked to this issue is open or already merged. Openarea: ui Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
payloadcms/payload#19690 ·
Maintainers usually reply within 1 day
-
[v4] Blocks thumbnails croped 3:2Possibly taken @samiarif02 claimed this 2 days ago. Openarea: ui Bug Payload OSS status: needs-triage v3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
payloadcms/payload#19609 ·
Maintainers usually reply within 1 day
-
Scheduled publish jobs are not deleted when their document is deleted (string id in the job, raw id in the cleanup)Possibly taken @volodymyrshk claimed this 10 days ago. Openarea: core Bug db: sqlite
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19448 ·
Maintainers usually reply within 1 day
-
plugin-multi-tenant: `isGlobal` collections redirect tenant-scoped users to `/admin` since 3.93.0 (GlobalViewRedirect prop-name mismatch)Possibly taken @JarrodMFlesch claimed this 10 days ago. OpenBug plugin: multi-tenant
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19420 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in payloadcms/payload
Similar issues
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Openarea: @angular/build
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
angular/angular-cli#34764 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30384 · 1 comment ·
Maintainers usually reply within 1 day
-
P2
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug ready-for-human
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
LucasSantana-Dev/Lucky#3150 ·
Maintainers usually reply within 1 day
-
enhancement good first issue priority: low size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day