Skip to content

Orderable operation validates against default locale instead of active locale #14684

@AaronClaes

Description

@AaronClaes

Describe the Bug

Issue

When you have multiple locales and required localized fields, the orderable functionality breaks.
This happens when you create documents in a locale that is not the default and try to reorder.

The reorder operation updates the default locale, which will be empty in this case, and fails because the required fields are not filled in

Error in UI:
Image

Actual error in terminal:
Image

Link to the code that reproduces this issue

https://github.com/AaronClaes/payload-orderable-bug

Reproduction Steps

Reproduction

I added a reproduction with the blank template. The following steps need to be taken to see the issue:

  1. Switch the locale to French (or any non default language)
Image
  1. Create multiple posts for that locale

  2. Go to the list view and try to drag.
    You will get the following error:

Image

But the actual issue is hidden in the logs:
Image

It checks if the Title & Content are valid, which they are for the French locale, but they are not for the default (English) locale, so the operation fails

Screen.Recording.2025-11-20.at.10.06.30.mov

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

area: core, area: ui

Environment Info

Binaries:
  Node: 23.11.0
  npm: 10.9.2
  Yarn: 1.22.19
  pnpm: 10.17.1
Relevant Packages:
  payload: 3.64.0
  next: 15.4.7
  @payloadcms/db-mongodb: 3.64.0
  @payloadcms/graphql: 3.64.0
  @payloadcms/next/utilities: 3.64.0
  @payloadcms/richtext-lexical: 3.64.0
  @payloadcms/translations: 3.64.0
  @payloadcms/ui/shared: 3.64.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions