Skip to content
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

Fixed form data collector #20707

Closed
wants to merge 1 commit into from
Closed

Conversation

Padam87
Copy link
Contributor

@Padam87 Padam87 commented Nov 30, 2016

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

@Tobion
Copy link
Contributor

Tobion commented Dec 1, 2016

Would be nice to provide a test case.

@Padam87
Copy link
Contributor Author

Padam87 commented Dec 1, 2016

After spending some time trying to write tests, I'm more baffled than before :) This should work, and the tests I wrote confirm that. Both mocked and functional tests passed with the original code.

Yet on a real, actual form, the children properties are not getting replaced, almost like if the references weren't working. (forms_by_hash is replaced, forms is replaced, forms.form.children is not)

The only remaining clue I have is the form being created via a subrequest. If it is created in the main request, everything is okay.

@nicolas-grekas
Copy link
Member

I checked out the patch and have a reproducer so I'm going to try to understand a bit better how this fails now :)

@Padam87
Copy link
Contributor Author

Padam87 commented Dec 5, 2016

Closing in favor of #20762

@Padam87 Padam87 closed this Dec 5, 2016
fabpot added a commit that referenced this pull request Dec 6, 2016
This PR was merged into the 3.2 branch.

Discussion
----------

[Form] Fix FormDataCollector

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

Alternative to #20707

Commits
-------

50400c4 [Form] Add failing test for data collector bug
164a20c [Form] Fix FormDataCollector
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.

5 participants