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
{{ message }}
Repository navigation
HasMany relationship with localized:true failes to empty the relationship #8132
When I remove all the selected userGroups in de Admin panel and save the document it gives a green success toast, but it resets the relationship to the old value.
Some steps I took to test:
Select 2 options, save -> ✅
Deselect 1 option, 1 option remaining, save -> ✅
Deselect 1 option, 0 options remaining, save -> 🚫 (although the toast message says success, it resets the selected options)
createParentField
I have another field, named parent, which is created by the createParentField.
When I query the collection, with that field, with ?where[parent][exists]=false it returns 0 docs, where it should have returned 2 docs.
?where[parent][exists]=true works however..
When it started
It started when I added localized: true. When I remove localized it works again, I can empty the field and query the collection successfully.
What happens here with localized: true?
To Reproduce
Create 2 collections
Add a relationship from one collection to the other with the following properties:
localized: true
required: false
hasMany: true
Go to admin panel
Add a couple docs in the 2 collections
Go to one doc, select a couple options in the relationship field
Save the doc
Edit the relationship field, remove all the selected docs
Activity
github-actions commentedon Dec 6, 2024
This issue was automatically closed due to lack of activity.
If this issue is still relevant against the latest codebase, please create a new issue.
github-actions commentedon Dec 10, 2024
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.