-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can't fully delete relationships #4332
Comments
Can you provide a replication case? We have not encountered this bug and use relationships extensively. |
Same issue. @Noviny here's the case: Regular
Initially it's empty, but when I add some value to it, save it and then clear it (so that field is empty again), saving this Model won't update
Any ideas on this behavior? |
Hey there, Installing Keystone It looks like the
As a temporary workaround, I would stick to an earlier beta version like Good luck! |
Is there a workaround for v4.0.0-beta.8 without editing the keystone/fields/types/relationship/RelationshipType.js core file? |
The context for the change is that the relationship field being absent from a submission (undefined) should not automatically delete it. This was causing a bug when calling update where the field was absent it would get deleted unintentionally. It should definitely be valid to pass no data for a field when saving and not erase it. |
I'm on the last commit on master but also this bug is present o the latest beta.
When you have a relationship you can't delete, it just ignore's it.
On a one to may relationship you can delete all of them except the last one.
The text was updated successfully, but these errors were encountered: