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

Duplicate documents with richtext fields in blocks in different locales #5789

Open
dkirchhof opened this issue Apr 11, 2024 · 0 comments
Open
Labels
[possible-bug] Possible bug which hasn't been reproduced yet

Comments

@dkirchhof
Copy link
Contributor

Link to reproduction

No response

Describe the Bug

I have a setup with multiple locales ("de" (default) and "en").
A "pages" collection with some richText-fields and a blocks field with different kind of blocks. These blocks also have richText fields.
All of these text fields are localized.

When duplicating a document the localized text values in the "root" fields will be duplicated as well. But values inside of the blocks are often empty.

Why do I say often? Sometimes it will duplicate the values in all locales. Sometimes it will duplicate only values in en (not the default locale).

I can't provide a repro right now, since I even can't explain it correctly. It feels completely random.

Btw. Why does payload switch to "en" all the time if no locale is set in the url? en is not my default. Stay at de please.

To Reproduce

s. description

Payload Version

2.11.2

Adapters and Plugins

No response

@dkirchhof dkirchhof added the [possible-bug] Possible bug which hasn't been reproduced yet label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[possible-bug] Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant