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

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

Closed
fabpot wants to merge1 commit intosymfony:masterfromfabpot:moved_domcrawler_20

Conversation

@fabpot
Copy link
Member

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

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

Hi,A select could be "globaly" disabled not only one of its options.http://www.w3schools.com/tags/att_select_disabled.asp
@xabbuh
Copy link
Member

Imo this deserves a test to avoid regressions.

Status: Needs work

@stof
Copy link
Member

I agree with@xabbuh

@fabpot
Copy link
MemberAuthor

@bouland Can you work on adding some unit tests?

@bouland
Copy link
Contributor

I was a little lost, I didn't understand what was expected from me :
"Some changes should be done to comply with our standards."
I will add tests soon.

@xabbuh
Copy link
Member

@bouland The pull request header (the table in the initial description was missing). I added it as you don't have the necessary permission to edit@fabpot's post.

@fabpot
Copy link
MemberAuthor

@bouland Any news on this one?

@bouland
Copy link
Contributor

Well i have not taken time to write the test.
Give me a week more.

@bouland
Copy link
Contributor

Could you give me push access to the PR branch
fabpot:moved_domcrawler_20
thx

@fabpot
Copy link
MemberAuthor

I can't. The best would be to close this PR and open a new one.

@fabpotfabpot closed thisJan 25, 2016
@xabbuh
Copy link
Member

@bouland By the way, how did you end up with having aChoiceFormField object pointing to anoption element?

@bouland
Copy link
Contributor

When i want to write a WebTestCase which submit a Form with a select with attribute disabled.

it calls$form->getPhpValues()

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$field->isDisabled() didn't work with ChoiceFormField of type "select"

publicfunction Form::getValues(){$values =array();foreach ($this->fields->all()as$name =>$field) {if ($field->isDisabled()) {continue;        }

fabpot added a commit that referenced this pull requestFeb 26, 2016
…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"
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@fabpot@xabbuh@stof@bouland@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp