Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plugin-nested-docs saves incomplete _breadcrumbs data with localization #12210

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

Open
mikexavier opened this issue Apr 24, 2025 · 0 comments
Open
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@mikexavier
Copy link

mikexavier commented Apr 24, 2025

Describe the Bug

When using @payloadcms/plugin-nested-docs with a localized collection, the data saved to the _breadcrumbs table is incomplete. Parent entries are missing for the translation of the entry you selected the parent from originally.

I would expect both parent-en/child-en and parent-de/child-de entries

NOTE: If you switch to the translation the parent is populated as expected. You can remove the parent -> save -> add it again -> save, and the correct entry will be added to _breadcrumbs.

Link to the code that reproduces this issue

https://github.com/mikexavier/payload-nested-docs-bug

Reproduction Steps

  1. Create 'Parent Category' (EN/DE)
  2. Create 'Child Category' (EN/DE)
  3. Select 'Parent Category' as parent. Save
  4. Inspect the category_breadcrumbs table
  5. Observe only one breadcrumb showing parent/child is present.
payload-nested-docs-bug-2.mov

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

plugin: nested-docs

Environment Info

Binaries:
  Node: 20.12.2
  npm: 10.5.0
  Yarn: 1.22.22
  pnpm: 9.15.0
Relevant Packages:
  payload: 3.35.1
  next: 15.3.0
  @payloadcms/email-nodemailer: 3.35.1
  @payloadcms/graphql: 3.35.1
  @payloadcms/next/utilities: 3.35.1
  @payloadcms/payload-cloud: 3.35.1
  @payloadcms/plugin-nested-docs: 3.35.1
  @payloadcms/richtext-lexical: 3.35.1
  @payloadcms/translations: 3.35.1
  @payloadcms/ui/shared: 3.35.1
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
@mikexavier mikexavier added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. labels Apr 24, 2025
@github-actions github-actions bot removed the validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant