Skip to content

Commit

Permalink
Make sure to collect child forms created on *_SET_DATA events
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Oct 16, 2019
1 parent 29cabf9 commit 093d50e
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -115,6 +115,10 @@ public function collectConfiguration(FormInterface $form)
$this->dataExtractor->extractConfiguration($form)
);

// make sure to dispatch *_SET_DATA events
// where some child forms can be created
$form->getData();

foreach ($form as $child) {
$this->collectConfiguration($child);
}
Expand Down

0 comments on commit 093d50e

Please sign in to comment.