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 f8e779a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -128,7 +128,8 @@ public function collectDefaultData(FormInterface $form)
$hash = spl_object_hash($form);

if (!isset($this->dataByForm[$hash])) {
$this->dataByForm[$hash] = [];
// field was created by form event
$this->collectConfiguration($form);
}

$this->dataByForm[$hash] = array_replace(
Expand Down

0 comments on commit f8e779a

Please sign in to comment.