Skip to content

Array field inside localized group field is not saved #8322

@ivankyrpa

Description

@ivankyrpa

Link to reproduction

https://github.com/ivankyrpa/payload-cms-beta-107

Environment Info

Binaries:
  Node: 20.12.2
  pnpm: 9.10.0
Relevant Packages:
  payload: 3.0.0-beta.107
  next: 15.0.0-canary.104
  @payloadcms/db-postgres: 3.0.0-beta.107
  @payloadcms/email-nodemailer: 3.0.0-beta.107
  @payloadcms/graphql: 3.0.0-beta.107
  @payloadcms/next/utilities: 3.0.0-beta.107
  @payloadcms/plugin-cloud: 3.0.0-beta.107
  @payloadcms/richtext-lexical: 3.0.0-beta.107
  @payloadcms/translations: 3.0.0-beta.107
  @payloadcms/ui/shared: 3.0.0-beta.107
  react: 19.0.0-rc-06d0b89e-20240801
  react-dom: 19.0.0-rc-06d0b89e-20240801

Describe the Bug

Since the original issue was not resolved I open another one.

Reproduction Steps

Please see the repo to re-product the issue. I utilized npx create-payload-app@beta command to create the project.

Test global looks like that:

export const TestGlobal: GlobalConfig = {
 slug: 'testGlobal',
 fields: [
   {
     name: 'group',
     localized: true,
     type: 'group',
     fields: [
       {
         name: 'innerArray',
         type: 'array',
         maxRows: 1,
         fields: [
           {
             type: 'row',
             fields: [
               {
                 name: 'field1',
                 type: 'text',
               },
               {
                 name: 'field2',
                 type: 'text',
               },
             ],
           },
           ...
         ],
       }
     ]
   }
 ],
}

Payload config:

...
import { TestGlobal } from './globals/TestGlobal'

export default buildConfig({
  ...
  globals: [TestGlobal],
  ...
  }),
  localization: {
    defaultLocale: 'en',
    locales: ['en', 'de'],
    fallback: true,
  },
  ...
})

### Adapters and Plugins

db-postgres

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions