Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Form] Added radio button for empty value to expanded single-choice fields#7939

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

Merged
fabpot merged 1 commit intosymfony:masterfromwebmozart:issue3154
May 6, 2013

Conversation

webmozart
Copy link
Contributor

QA
Bug fix?yes
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#3154
LicenseMIT
Doc PRsymfony/symfony-docs#2605

* @param array $choices An array of choices. Not existing choices in this
* array are ignored.
*
* @return array An array of indices with ascending, 0-based numeric keys
* @return array An array of indices with ascending, 0-based numeric keys.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

we don't put dots at the end of the @... lines

@rdohms
Copy link
Contributor

Will this be backported?

@webmozart
Copy link
ContributorAuthor

@rdohms This would change existing applications. I don't think we can backport this without breaking something.

fabpot added a commit that referenced this pull requestMay 6, 2013
This PR was merged into the master branch.Discussion----------[Form] Added radio button for empty value to expanded single-choice fields| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#3154| License       | MIT| Doc PR        |symfony/symfony-docs#2605Commits-------7933971 [Form] Added radio button for empty value to expanded single-choice fields
@fabpotfabpot merged commit7933971 intosymfony:masterMay 6, 2013
@rdohms
Copy link
Contributor

@bschussek not really, does this not kick in only if theempty_value option is set? Current functionality simply ignores this option, so its really a bug not a feature. If we backport this only people who actually meant their choice list to have an empty will have it display the empty option.

or is there more to it?

@webmozart
Copy link
ContributorAuthor

@rdohms Theempty_value option is set automatically ifrequired is false. Wecould backport it so that it is not set automatically for expanded single-choice fields < 2.3 and the empty field is only displayed if theempty_value option is set manually.@fabpot?

@fabpot
Copy link
Member

Really depends on the added complexity.

But you can look at it as being a new feature or a bug fix; in the past, for similar cases, we always opted to consider such things as new features instead of bug fixes.

@rdohms
Copy link
Contributor

@bschussek understood. I only ask because we have an internal ticket tied to this, so i need to understand what timeframes i can deal with. Backporting would allow me to roll out a fix now, 2.3 will require we wait a bit. No problem.

@webmozart
Copy link
ContributorAuthor

@rdohms Ok, I'd prefer to wait then. Thank you for your patience!

fabpot added a commit that referenced this pull requestSep 10, 2013
This PR was merged into the master branch.Discussion----------[Form] Fixed expanded choice field to be marked invalid when unknown choices are submitted#7939 must be merged before this PR is merged.| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#5113,#5190| License       | MIT| Doc PR        | -TODO:- [x] test EntityChoiceList for stricter rules- [ ] test ModelChoiceList for stricter rules- [x] remove/deprecate the ChoiceList::getIndicesFor*() methodsCommits-------9efdb8e [Form] Deprecated ChoiceList::getIndicesFor*() methods67ba131 [DoctrineBridge] Improved test coverage of EntityChoiceList31e5ce5 [Form] Improved test coverage of ChoiceList classes6283b0e [Form] Fixed expanded choice field to be marked invalid when unknown choices are submitted79a214f [Form] Fixed ChoiceList::get*By*() methods to preserve order and array keys62fbed6 [Form] Removed usage of the ChoiceList::getIndicesFor*() methods where they don't offer any performance benefit
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@webmozart@rdohms@fabpot@craue

[8]ページ先頭

©2009-2025 Movatter.jp