You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that with 3.0.0 and newer (I've tried up to 3.1.0 but I haven't tested older versions) when using bulk edit to update one field causes Payload to delete another field of type array.
I've reproduced this in the Payload monorepo pre 3.2 release using both db-postgres and db-mongodb. The odd thing is that it happens 4 / 5 times with the fifth time working as expected. Will double check if it's still happening.
Describe the Bug
It seems that with 3.0.0 and newer (I've tried up to 3.1.0 but I haven't tested older versions) when using bulk edit to update one field causes Payload to delete another field of type array.
Link to the code that reproduces this issue
https://github.com/thekiwi/payload-bulk-edit-bug
Reproduction Steps
Start the reproduction repo, pointing at a PostgreSQL database (I used 16.3)
Log into the Admin panel (first creating a user, if necessary)
Create a new Thing, leave 'enabled' unchecked, but add an entry to the 'foos' array
View the list of things, you should see
1 Foos
for the new thingCheck the
things_foos
collection in the DB and observe there is now 1 record.Check the thing you just created and click "Edit" to start bulk editing
Toggle the 'enabled' field to true for the thing you just created
Click "Save"
Return to the list of things, you should see
0 Foos
for the thing you just editedCheck the
things_foos
collection in the DB and observe there are now 0 recordsWhich area(s) are affected? (Select all that apply)
db-postgres, area: core
Environment Info
The text was updated successfully, but these errors were encountered: