Skip to content

Localized gets ignored when using groups on postgres #11651

@hesselberg

Description

@hesselberg

Describe the Bug

Using groups inside a localized tab ignores localized for the fields in the group, only adherring to the last configured locale (in this reproduction English).

If I were to guess, looking at the payload-types all IDs are now numbers instead of strings. I'm no DB expert but this could be related somehow.

Video of the bug:

Screen.Recording.2025-03-12.at.11.17.49.mp4

Link to the code that reproduces this issue

https://github.com/hesselberg/payload

Reproduction Steps

Prerequisuite: Make sure you have a running postgres db instead of the mongodb.

  1. run pnpm i
  2. run pnpm dev _community 
  3. visit http://localhost:3000/admin/collections/posts 
  4. Click the post
  5. Verify you are in the Danish locale
  6. Add text to "Heading" field, e.g. "Danish heading"
  7. Press Save. Confirm the field is blank.
  8. Switch to English locale in top right corner
  9. Add text to "Heading field", e.g. "English heading"
  10. Press Save. Confirm field is "English Heading"
  11. Switch back to Danish locale in top right corner
  12. Confirm the field is now "English Heading"

Which area(s) are affected? (Select all that apply)

db-postgres

Environment Info

Tested on both Payload 3.24.0, 3.27.0, 3.28.0
Node.JS: 21.1.0
Next.JS: 15.2.2

Metadata

Metadata

Assignees

Labels

area: localizationrelated to the localization functionalitydb: postgres@payloadcms/db-postgres

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions