Closed lluishi93 closed 1 year ago
Preface: The field null value is related to #15033, so that should be addressed over there.
This might be related to the change in #14947 (released in 9.18.0
), particularly the check for is_generated
to delete the primary key during Save as Copy: https://github.com/directus/directus/pull/14947/files#diff-4ca9afb518ec3f7957e6a2723f01f557c177987383e93bda1ce02918b73b27fcR172
as is_generated
is false for autoincrement id, at least for Postgres from my local test:
so the id is being sent during save as copy now.
Same problem with 9.18.1. Going back to 9.17.4 fixed it for me.
Note: #16186 reported this for UUID as well, so it should also be tested alongside autoincrement primary keys.
I feel that this issue deserves more attention. It's been a month now that the "Save as Copy" button just doesn't work. Maybe, at the very least, the button should be removed entirely in the meantime while this issue remains unresolved?
Linear: ENG-179
so this is supposed to be working, on the cloud version?
....because it doesn't (directus, cloud version)
@ricricucit Hiding this comment as unrelated as it was answered here https://github.com/directus/directus/pull/10418#issuecomment-1369895194
Describe the Bug
Save as copy has stopped working. It seems that it fails when creating the new record because Directus is trying to use the existing ID.
To Reproduce
Errors Shown
What version of Directus are you using?
9.18.0
What version of Node.js are you using?
16.14.0
What database are you using?
MySQL 5.7
What browser are you using?
Chrome
How are you deploying Directus?
Docker