File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,13 @@ private function extractFormValues(FormView $formView): array
166166 $ values = [];
167167 foreach ($ formView ->children as $ child ) {
168168 $ name = $ child ->vars ['name ' ];
169- if (\count ($ child ->children ) > 0 ) {
169+ if (
170+ (
171+ !array_key_exists ('expanded ' , $ child ->vars )
172+ || !$ child ->vars ['expanded ' ]
173+ )
174+ && \count ($ child ->children ) > 0
175+ ) {
170176 $ values [$ name ] = $ this ->extractFormValues ($ child );
171177
172178 continue ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testFormValues(): void
3232 'textarea ' => '' ,
3333 'range ' => '' ,
3434 'choice ' => '' ,
35- 'choice_expanded ' => null ,
35+ 'choice_expanded ' => '' ,
3636 'checkbox ' => null ,
3737 'file ' => '' ,
3838 'hidden ' => '' ,
You can’t perform that action at this time.
0 commit comments