Fixed bug with wrong form parsing when several custom inner types exist

This commit is contained in:
Dmitry Malyshenko 2016-02-03 10:02:33 +00:00
parent 5d9c47bbad
commit 0ed53788d2

View File

@ -263,6 +263,11 @@ class FormTypeParser implements ParserInterface
*/
$addDefault = false;
try {
if (isset($subForm)) {
unset($subForm);
}
if (LegacyFormHelper::hasBCBreaks()) {
try {
$subForm = $this->formFactory->create(get_class($type), null, $options);