This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony
Fabien Potencier 554d57b399 bug#9146 [RC][Form] Let null values clear fields in PATCH requests (alex88)
This PR was merged into the master branch.

Discussion
----------

[RC][Form] Let null values clear fields in PATCH requests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes

I've changed the way form checks wherever or not to submit childs by checking submitted data with array_key_exists and not with just isset.

This way in PATCH requests values are not processed when they are not in array and not also when the value is null. Currently there is no way to null a value with a PATCH request, even passing it null.

This can lead to some BC breaks depending on how users used form in their code.

Commits
-------

f5812c5 [Form] Let null values to unset fields in PATCH requests
2013-10-01 10:38:18 +02:00
..
Bridge feature#6554 [Security] Added Security\Csrf sub-component with better token generation (bschussek) 2013-09-30 17:35:08 +02:00
Bundle [HttpFoundation] Add a way to avoid the session be written at each request 2013-09-30 12:03:12 -07:00
Component bug#9146 [RC][Form] Let null values clear fields in PATCH requests (alex88) 2013-10-01 10:38:18 +02:00