`locale: 'all'` with Local API not updating localized fields. · Issue #16345 · payloadcms/payload · GitHub
Skip to content

locale: 'all' with Local API not updating localized fields. #16345

@MartijnDeRoode

Description

@MartijnDeRoode

Describe the Bug

When using the locale: 'all' option in the local update API all fields get updated except for the localized ones.

Link to the code that reproduces this issue

https://github.com/MartijnDeRoode/payload-reproductions

Reproduction Steps

  1. Clone the repository
  2. Install dependencies & run
  3. Create a post through the admin panel
  4. Go to http://localhost:3000/api/post/test/{id}, this will randomly generate a string and put it in all 3 fields. (1 normal and 2 localized.)
  5. Check the response or the admin panel. You will find that only the first text field is updated.

Which area(s) are affected?

area: core

Environment Info

Binaries:
  Node: 22.17.0
  npm: N/A
  Yarn: N/A
  pnpm: 9.7.0
Relevant Packages:
  payload: 3.83.0
  next: 16.2.3
  @payloadcms/db-mongodb: 3.83.0
  @payloadcms/graphql: 3.83.0
  @payloadcms/next/utilities: 3.83.0
  @payloadcms/richtext-lexical: 3.83.0
  @payloadcms/translations: 3.83.0
  @payloadcms/ui/shared: 3.83.0
  react: 19.2.4
  react-dom: 19.2.4
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
  Available memory (MB): 65375
  Available CPU cores: 24

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions