Merge pull request #352 from ylazarov/patch-3

Update TranslationCollectionFormListener.php
This commit is contained in:
Toni Uebernickel 2015-12-03 07:30:51 +01:00
commit 28842e3a8f

View file

@ -81,8 +81,7 @@ class TranslationCollectionFormListener implements EventSubscriberInterface
if (method_exists($rootData, $addFunction)) {
$foundData = true;
break;
} elseif ($currentForm->hasParent()) {
$currentForm = $currentForm->getParent();
} elseif (null != ($currentForm = $currentForm->getParent())) {
$rootData = $currentForm->getData();
} else {
break;