Skip to content

[Form] Remove unnecessary option assignment #18456

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

Merged
merged 1 commit into from
Apr 6, 2016
Merged

[Form] Remove unnecessary option assignment #18456

merged 1 commit into from
Apr 6, 2016

Conversation

sergeyfedotov
Copy link
Contributor

Q A
Branch? 2.3
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Option assignment is not required because the prototype inherits this option from the parent form via standard inheritance mechanism.

Related pull requests: #16959, #18317

@HeahDude
Copy link
Contributor

HeahDude commented Apr 5, 2016

👍 Good catch, I failed to understand when you first proposed it in #18317.

Status: Reviewed

@Tobion
Copy link
Contributor

Tobion commented Apr 6, 2016

This basically reverts #16959. So the issue that it fixed (#15544) was not actually broken as the test still passes?

@sergeyfedotov
Copy link
Contributor Author

#18317 resolves the issue #15544 by the new way. Tests that have been introduced in the #16959 still pass.

@xabbuh
Copy link
Member

xabbuh commented Apr 6, 2016

👍

@Tobion
Copy link
Contributor

Tobion commented Apr 6, 2016

Thank you @sergeyfedotov.

@Tobion Tobion merged commit da8a197 into symfony:2.3 Apr 6, 2016
Tobion added a commit that referenced this pull request Apr 6, 2016
This PR was merged into the 2.3 branch.

Discussion
----------

[Form] Remove unnecessary option assignment

| Q             | A
| ------------- | ---
| Branch?       | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Option assignment is not required because the prototype inherits this option from the parent form via standard inheritance mechanism.

Related pull requests: #16959, #18317

Commits
-------

da8a197 Remove unnecessary option assignment
@sergeyfedotov sergeyfedotov deleted the remove_unnecessary_option_assignment branch April 6, 2016 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants