Skip to content

fix: propagate dbName from blocks to nested fields (#16116)#16206

Open
deepshekhardas wants to merge 4 commits intopayloadcms:mainfrom
deepshekhardas:fix/16116-dbName-blocks
Open

fix: propagate dbName from blocks to nested fields (#16116)#16206
deepshekhardas wants to merge 4 commits intopayloadcms:mainfrom
deepshekhardas:fix/16116-dbName-blocks

Conversation

@deepshekhardas
Copy link
Copy Markdown
Contributor

Fixes #16116 - dbName on blocks not propagated to nested fields

Problem: When a blocks field has dbName specified, it wasn't being propagated to the nested fields within the blocks, causing incorrect table names to be generated.

Solution: Added dbName to the sanitizeFields Args type and propagate it to nested block and array fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dbName on blocks not propagated as prefix for nested sub-table names in versions context

1 participant