Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Closed
Description
Symfony version(s) affected
6.3.6
Description
#52021 introduced an issue when form collection contains zero indexed item.
When submitting form with zero indexed collection item its values are reindexed.
There was an attempt to fix this inb769b77 but it was not enough for this case. As the original issue is closed. There is new one.
How to reproduce
See reproducer with test case and proposed change:
https://github.com/symfony/symfony/compare/6.4...jan-pintr:symfony-form-zero-indexed-collection-reporoducer:form-zero-indexed-col-reproducer?expand=1
Possible Solution
Reproducer contains proposed change toFormUtil::mergeParamsAndFiles() function.
Additional Context
No response