Skip to content

[Form] keep the context when validating forms #25940

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
Feb 7, 2018
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 26, 2018

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

@xabbuh
Copy link
Member Author

xabbuh commented Jan 26, 2018

The context is modified by the nested validator calls for the form children. I am actually not sure if this solution is the best or if we should rather clone the current context before validating the nested data.

If someone is able to write a test case for this, that will be really appreciated. I failed miserably.

@xabbuh
Copy link
Member Author

xabbuh commented Jan 26, 2018

Status: Needs Review

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Feb 3, 2018

Could you add a test case please?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(I missed the test change :) )

@fabpot
Copy link
Member

fabpot commented Feb 7, 2018

Thank you @xabbuh.

@fabpot fabpot merged commit 317da3b into symfony:2.7 Feb 7, 2018
fabpot added a commit that referenced this pull request Feb 7, 2018
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] keep the context when validating forms

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

Commits
-------

317da3b keep the context when validating forms
@xabbuh xabbuh deleted the issue-25542 branch February 7, 2018 08:09
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.

4 participants