Merge pull request #352 from ylazarov/patch-3
Update TranslationCollectionFormListener.php
This commit is contained in:
commit
28842e3a8f
|
@ -81,8 +81,7 @@ class TranslationCollectionFormListener implements EventSubscriberInterface
|
||||||
if (method_exists($rootData, $addFunction)) {
|
if (method_exists($rootData, $addFunction)) {
|
||||||
$foundData = true;
|
$foundData = true;
|
||||||
break;
|
break;
|
||||||
} elseif ($currentForm->hasParent()) {
|
} elseif (null != ($currentForm = $currentForm->getParent())) {
|
||||||
$currentForm = $currentForm->getParent();
|
|
||||||
$rootData = $currentForm->getData();
|
$rootData = $currentForm->getData();
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue