Open
Description
Describe the Bug
Hey lovely payload people <3
Given fields:
{
name: 'section',
localized: true, // <--- toggle here
type: 'array',
fields: [
{
name: 'image',
type: 'relationship',
relationTo: 'media',
},
],
}
The following join causes an error:
{
name: 'usedIn',
type: 'join',
collection: 'posts',
on: 'section.image',
}
Error:
InvalidFieldJoin: Invalid join field usedIn. The config does not have a field 'section.image' in collection 'posts'.
Link to the code that reproduces this issue
https://github.com/Xiphe/payload-join-localized-array/tree/localized-array-deep-join
Reproduction Steps
- check out
https://github.com/Xiphe/payload-join-localized-array/tree/localized-array-deep-join
- run
pnpm i
- run
pnpm test:int _community
- see error
- remove
localized: true
fromtest/_community/collections/Posts/index.ts
- re-run
pnpm test:int _community
- see no error
Which area(s) are affected? (Select all that apply)
Not sure
Environment Info
Sidenote: `pnpm payload info` produces ` ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "payload" not found`
Binaries:
Node: 20.11.0
npm: 10.2.4
Yarn: N/A
pnpm: 9.15.2
Relevant Packages:
payload: 3.14.0
next: 15.1.3
@payloadcms/db-postgres: 3.14.0
@payloadcms/live-preview-react: 3.14.0
react: 19.0.0
react-dom: 19.0.0
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
Available memory (MB): 32768
Available CPU cores: 10
Metadata
Assignees
Labels
No labels
Activity