Skip to content

Commit

Permalink
minor #33291 [Form][PropertyPathMapper] Avoid extra call to get confi…
Browse files Browse the repository at this point in the history
…g (fancyweb)

This PR was merged into the 3.4 branch.

Discussion
----------

[Form][PropertyPathMapper] Avoid extra call to get config

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

3e2aada [Form][PropertyPathMapper] Avoid extra call to get config
  • Loading branch information
nicolas-grekas committed Aug 22, 2019
2 parents 26be947 + 3e2aada commit 118dfa0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ public function mapDataToForms($data, $forms)
if (!$empty && null !== $propertyPath && $config->getMapped()) {
$form->setData($this->propertyAccessor->getValue($data, $propertyPath));
} else {
$form->setData($form->getConfig()->getData());
$form->setData($config->getData());
}
}
}
Expand Down

0 comments on commit 118dfa0

Please sign in to comment.