Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating documents with localized required text(area) field doesn't work #7270

Open
RickGeersing opened this issue Jul 22, 2024 · 0 comments · May be fixed by #8232
Open

Duplicating documents with localized required text(area) field doesn't work #7270

RickGeersing opened this issue Jul 22, 2024 · 0 comments · May be fixed by #8232
Assignees
Labels

Comments

@RickGeersing
Copy link

RickGeersing commented Jul 22, 2024

Link to reproduction

No response

Describe the Bug

Hello,

We have an issue with duplicating documents that have required localized text and textarea fields. It seems like it doesn't copy these fields to a new duplicated version of the document. Because they are required it throws an The following fields are invalid error even though the fields are filled in correctly on the page to be duplicated. Would be nice to have this fixed asap, because one of our customers can't duplicate pages. Which is essential for them.

To Reproduce

  1. Enable localization
localization: {
    locales: ['ar', 'de', 'en', 'fr', 'nl', 'pl'],
    defaultLocale: 'nl',
    fallback: true,
}
  1. Add the following field to a collection
{
    name: 'title',
    type: 'text',
    required: true,
    localized: true,
}
  1. Save a document with the title field filled in.
  2. Try to duplicate the document, you should see The following fields are invalid: title

Payload Version

2.24.0

Adapters and Plugins

db-mongodb, bundler-webpack, cloud-storage, nested-docs, search, seo, richtext-slate

@RickGeersing RickGeersing added status: needs-triage Possible bug which hasn't been reproduced yet v2 labels Jul 22, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants