Skip to content

Notice: Undefined index: view_vars #20020

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

Closed
gharlan opened this issue Sep 22, 2016 · 0 comments
Closed

Notice: Undefined index: view_vars #20020

gharlan opened this issue Sep 22, 2016 · 0 comments

Comments

@gharlan
Copy link
Contributor

gharlan commented Sep 22, 2016

.. in FormDataCollector.php line 249 (current master)

This happens after submitting form. I guess it happens when $form->createView() is not called.
You can reproduce it in symfony_demo (with current master of symfony) with CommentType.
After sending a new comment, the profile for the POST request ist missing.
To see the notice change this line to:

return new Response('', 204);

ping @nicolas-grekas

screenshot 2016-09-22 13 07 58

nicolas-grekas added a commit that referenced this issue Sep 22, 2016
This PR was merged into the 3.2-dev branch.

Discussion
----------

[Form] Fix FormDataCollector

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

Commits
-------

b65f0a8 [Form] Fix FormDataCollector
@gharlan gharlan closed this as completed Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant