This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Don't allow choices with same value in dropdown #13371
Comments
Is there a particular reason to have multiple choices with the same value? If it's intentional, I personally wouldn't categorize this is a bug or error, but I do agree it can be improved in the sense that duplicate value should be prevented (or maybe overrides the previous value). |
you need for the opening times by day of the week, |
I believe an M2O field would be more suitable and flexible in such scenario, but understandably it can be difficult to understand the data modeling decisions made here without full context. I'll defer to @rijkvanzanten on whether this is a change we'd like to make (and/or any potential unforeseen pitfalls). |
First, OP is wrong. You have the text value in the value input and vice versa. It should be the other way around. Then technically, the values aren't duplicates as the values for each choice are different.
This. Personally I too tend to always use an m2o solution with a table being able to offer user editable choices and easy changes for the future. An Also, in the case of business hours, I just use a repeater which an open time / close time structure. |
Thanks for the answer, in my example I create a field user mode (company) this field for each company is unique and different will create many duplicate M2O records, I created a field JSON and just in this case will store it in this form |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the Bug
When you create a multiple list with the same values, an error occurs, selecting one selects all the others
To Reproduce
https://recordit.co/eLAkM8n9Hm
Errors Shown
No response
What version of Directus are you using?
9.10.0
What version of Node.js are you using?
v14.19.1
What database are you using?
mariadb
What browser are you using?
Firefox
How are you deploying Directus?
npm
The text was updated successfully, but these errors were encountered: