payload
payload copied to clipboard
Error on saving Collection with versioning and localized content in arrays in blocks
Link to reproduction
https://github.com/Augigauki/payload-array-block-bug-demo
Describe the Bug
A bug when you have localized content in multiple instances of the same array in a Blocks-field, and versioning is enabled on the collection.
To Reproduce
Outlined in the linked repo, but copying here for clarity:
Steps to reproduce:
- Clone repo
- Create a new page
- Add a block to the layout, selecting "Item" as the block
- Add an item (or more) to the block
- Add some content to localized textfield
- Add another block to the layout, selecting "Item" again
- Add some content to localized textfield
- Save
Payload Version
2.12.1
Adapters and Plugins
db-postgres 0.7.1
Still an issue in Payload 2.14.2 with [email protected]
@Augigauki I'm also facing this issue
This is still an issue in my project.
Updated to v.2.29.0 just now, since I saw this promising bugfix:
db-postgres: localized items in arrays with versions
#8334 , but the issue is still occuring.
Same reproducible steps as before. Hoping for a fix, because we are moving to using more generalized blocks (for various cards sections for instance), so a page can be expected to have multiple blocks of the type Cards, with each block having it's own array of cards.
I forgot to update the db-postgres package, it was still on 0.8.2 - updated to @latest (0.8.7) and now saving works fine :)
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.