Skip to content

Copy to locale does not work if localized fields are inside tabs #13374

@mikkelwf

Description

@mikkelwf

Describe the Bug

Copying from one locale to another fails if the collection has localized fields inside tabs.

Link to the code that reproduces this issue

https://github.com/re-cph/payload/tree/tabs_issues

Reproduction Steps

Start docker (docker compose included in root)
Create a post
Try to copy the saved entity to the other locale.
Copy fails

ERROR: There was an error copying data from "da" to "en"
    err: {
      "type": "ValidationError",
      "message": "error:followingFieldsInvalid id",
   }

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

area: core

Environment Info

Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: 1.22.22
  pnpm: 10.3.0
Relevant Packages:
  payload: 3.49.1
  next: 15.4.5
  @payloadcms/db-postgres: 3.49.1
  @payloadcms/email-nodemailer: 3.49.1
  @payloadcms/graphql: 3.49.1
  @payloadcms/live-preview: 3.49.1
  @payloadcms/live-preview-react: 3.49.1
  @payloadcms/next/utilities: 3.49.1
  @payloadcms/plugin-form-builder: 3.49.1
  @payloadcms/plugin-search: 3.49.1
  @payloadcms/richtext-lexical: 3.49.1
  @payloadcms/translations: 3.49.1
  @payloadcms/ui/shared: 3.49.1
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions