Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form][2.7] Allow choices with duplicated content#16582
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ewgRa commentedNov 18, 2015
| Q | A |
|---|---|
| Bug fix? | yes |
| New feature? | no |
| BC breaks? | no, but not sure |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | #15606 |
| License | MIT |
| Doc PR |
ewgRa commentedNov 18, 2015
Test fails seems not related. ping@webmozart @symfony/deciders is it possible to have your point of view on this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
adding a method to an interface is a BC break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
maybe you could add a new interface instead, with only these methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Ok, I will check.
stof commentedNov 19, 2015
What is the use case for having duplicate choices ? |
ewgRa commentedNov 19, 2015
Tobion commentedNov 20, 2015
What@stof means and what I agree with is that duplicate choices (what you would get as selected value) makes no sense as you would not be able to distinguish each one anyway. Having the same label can happen and this is possible with the |
ewgRa commentedNov 20, 2015
@Tobion first of all thanks for review
Sometimes it is not needed, sometimes business want to show same thing twice, just to increase chance that user select it, or do not miss. Also as check my case:#15606 (comment). About choice_label, if you mean something like this: It is not working.
Can you check tests from this PR? For example there is a test that create ArrayKeyChoiceList without second argument, and in this case useChoicesAsValues will be true. It is not only about BC layer as I understand. Would be nice to hear@webmozart, as contributor of this code. |
webmozart commentedNov 26, 2015
Hi :) Thanks for working on this! I think this should be fixed in a less intrusive way. See#16685. |