Skip to content
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

Enabling Create Button on M2O interface allows creation of new items in singleton collection #17080

Open
adanielyan opened this issue Jan 10, 2023 · 2 comments
Labels

Comments

@adanielyan
Copy link
Contributor

Describe the Bug

I created a singleton collection and added a M2O relationship from another collection to it. I enabled both the Select and Create Buttons in the interface settings of that relationship field. When I try to select an existing singleton item I see a plank panel and cannot select anything, even though there is a singleton item created. When I click on Create button I am able to create a new item in the singleton collection. I can see that there is more than 1 item in singleton when querying the db directly.

To Reproduce

  1. create a singleton collection
  2. add a M2O relationship from another collection to it
  3. enable both the Select and Create Buttons in the interface settings of that relationship field
  4. create a singleton item
  5. (optional) try to Select that singleton item from related collection
  6. click on Create button and add a new item
  7. query the singleton collection

Errors Shown

None

What version of Directus are you using?

9.22.1

What version of Node.js are you using?

18.12.1

What database are you using?

Postgres 14 on RDS

What browser are you using?

Edge

How are you deploying Directus?

on a Ubuntu server

@github-actions
Copy link

Linear: ENG-457

@adanielyan adanielyan changed the title Enabling Create Button on M2O rel allows creation of new records on singleton collection Enabling Create Button on M2O interface allows creation of new items on singleton collection Jan 10, 2023
@adanielyan adanielyan changed the title Enabling Create Button on M2O interface allows creation of new items on singleton collection Enabling Create Button on M2O interface allows creation of new items in singleton collection Jan 10, 2023
@rijkvanzanten
Copy link
Member

ha good find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants