Skip to content

Depth parameter not working with ?locale=all  #4972

Open
@fsyntax

Description

@fsyntax

Link to reproduction

https://github.com/fsyntax/payload/tree/locale-depth

Describe the Bug

The depth parameter doesnt seem to have any impact when fetching collections with locale=all.

To Reproduce

  1. Create two simple Pages
  2. Create a Hero Block inside one of the pages and add a button in an array field for both locales and link it to the second page
  3. Now visit http://localhost:3000/api/page/1?locale=de&draft=true&depth=1 - heroButtons[0].link.value contains i.e. _status
  4. Then visit http://localhost:3000/api/page/1?locale=all&draft=true&depth=1 - heroButtons.de/en[0].link.value only contains the page ID anymore, regardless of the given depth value

Payload Version

2.9.0

Adapters and Plugins

db-postgres, bundler-webpack

Metadata

Metadata

Assignees

Labels

keepPrevents from being marked stale or auto-closed.stalestatus: needs-triagePossible bug which hasn't been reproduced yetv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions