Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Update ChoiceFormField.php#15952
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
Hi,A select could be "globaly" disabled not only one of its options.http://www.w3schools.com/tags/att_select_disabled.asp
xabbuh commentedSep 28, 2015
Imo this deserves a test to avoid regressions. Status: Needs work |
stof commentedSep 28, 2015
I agree with@xabbuh |
fabpot commentedOct 6, 2015
@bouland Can you work on adding some unit tests? |
bouland commentedOct 7, 2015
I was a little lost, I didn't understand what was expected from me : |
xabbuh commentedOct 7, 2015
fabpot commentedJan 25, 2016
@bouland Any news on this one? |
bouland commentedJan 25, 2016
Well i have not taken time to write the test. |
bouland commentedJan 25, 2016
Could you give me push access to the PR branch |
fabpot commentedJan 25, 2016
I can't. The best would be to close this PR and open a new one. |
xabbuh commentedJan 25, 2016
@bouland By the way, how did you end up with having a |
bouland commentedJan 26, 2016
When i want to write a WebTestCase which submit a Form with a select with attribute disabled. it calls publicfunction Client::submit(Form$form, array$values =array()){$form->setValues($values);return$this->request($form->getMethod(),$form->getUri(),$form->getPhpValues(),$form->getPhpFiles());} then the test publicfunction Form::getValues(){$values =array();foreach ($this->fields->all()as$name =>$field) {if ($field->isDisabled()) {continue; } |
…and)This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#17542).Discussion----------ChoiceFormField of type "select" could be "disabled"Hi,New PR to add tests from the closed PR#15952| Q | A| ------------- | ---| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Commits-------576c4b9 ChoiceFormField of type "select" could be "disabled"
This PR was submitted on the symfony/dom-crawler read-only repository by@bouland and moved automatically to the main Symfony repository (closessymfony/dom-crawler#20).
Hi,
A select could be "globaly" disabled not only one of its options.
http://www.w3schools.com/tags/att_select_disabled.asp