Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] Fix BC break introduced in #14403 #18275

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
Mar 27, 2016

Conversation

HeahDude
Copy link
Contributor

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

@HeahDude
Copy link
Contributor Author

@HeahDude
Copy link
Contributor Author

Note to merger: to revert in 3.0

@xabbuh
Copy link
Member

xabbuh commented Mar 23, 2016

Why is the order of the attributes important? Imo you should not rely on it.

@HeahDude
Copy link
Contributor Author

@xabbuh we don't have the choice IMHO.

The component themes need to print the value independently from attr so they can be overridden with:

{% set read_only = true %}
{{ block('parent_block') }}

@mnapoli
Copy link
Contributor

mnapoli commented Mar 23, 2016

👍 however I think the tests need to be reverted too to ensure that we are fixing the problem (see #14403 (comment))

@HeahDude
Copy link
Contributor Author

@mnapoli Thanks for the review, the tests are already reverted (otherwise they would fail).

Failures are unrelated.

@xabbuh
Copy link
Member

xabbuh commented Mar 25, 2016

You will now need to update the lowest version of the Form component required by the FrameworkBundle to ^2.8.4.

@HeahDude
Copy link
Contributor Author

@xabbuh so it should be done in a second commit since this one is supposed to be reverted in 3.0, right ?

@xabbuh
Copy link
Member

xabbuh commented Mar 25, 2016

Not necessarily if I don't misunderstand you. We need to revert all the changes here in the 3.0 branch, don't we?

@HeahDude
Copy link
Contributor Author

Yes we do.

@HeahDude HeahDude force-pushed the fix-form-read_only branch from 903b29c to 5f48c6a Compare March 25, 2016 18:30
@HeahDude
Copy link
Contributor Author

Thanks @xabbuh tests are all green now (excepted appveyor being unusually long).

@HeahDude
Copy link
Contributor Author

It seems appveyor has bugged, why does it still try to install icu v51 ?

@xabbuh
Copy link
Member

xabbuh commented Mar 26, 2016

👍

Status: Reviewed

@HeahDude
Copy link
Contributor Author

@xabbuh Do I need to upgrade the composer.json of TwigBridge too ?

@xabbuh
Copy link
Member

xabbuh commented Mar 26, 2016

@HeahDude Usually you would have to do that. But this time that's not necessary as this was apparently done in another pull request before: https://github.com/symfony/symfony/blob/2.8/src/Symfony/Bridge/Twig/composer.json#L25

@HeahDude
Copy link
Contributor Author

@xabbuh Thanks for your leading :)

@fabpot
Copy link
Member

fabpot commented Mar 27, 2016

Thank you @HeahDude.

@fabpot fabpot merged commit 5f48c6a into symfony:2.8 Mar 27, 2016
fabpot added a commit that referenced this pull request Mar 27, 2016
This PR was merged into the 2.8 branch.

Discussion
----------

[Form] Fix BC break introduced in #14403

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

Commits
-------

5f48c6a [Form] Fix BC break introduced in #14403
fabpot added a commit that referenced this pull request Mar 27, 2016
This reverts commit 56fa798, reversing
changes made to dcc3fce.
@HeahDude HeahDude deleted the fix-form-read_only branch March 27, 2016 12:14
@mnapoli
Copy link
Contributor

mnapoli commented Mar 27, 2016

Thanks @HeahDude for the fix!

@HeahDude
Copy link
Contributor Author

@mnapoli Thanks for reporting this issue :)

This was referenced Mar 27, 2016
fabpot added a commit that referenced this pull request Mar 27, 2016
* 3.0:
  bumped Symfony version to 2.8.5
  updated VERSION for 2.8.4
  updated CHANGELOG for 2.8.4
  Revert "bug #18275 [Form] Fix BC break introduced in #14403 (HeahDude)"
  improved comment
  [FileSystem] Add support for Google App Engine.
  [2.8] fix mocks
  bumped Symfony version to 2.7.12
  [Form] Fix BC break introduced in #14403
  updated VERSION for 2.7.11
  updated CHANGELOG for 2.7.11
  [Request] Fix support of custom mime types with parameters
  fix mocks
  fix mocks
  [Validator] do not treat payload as callback
@fabpot fabpot mentioned this pull request Mar 30, 2016
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