From 0ed53788d262d6bb821596bb7b98edceb1156cf5 Mon Sep 17 00:00:00 2001 From: Dmitry Malyshenko Date: Wed, 3 Feb 2016 10:02:33 +0000 Subject: [PATCH] Fixed bug with wrong form parsing when several custom inner types exist --- Parser/FormTypeParser.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 6d9b5cd..20569d8 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -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);