Explorar el Código

Merge remote branch 'lewinski/radio-infinite-recursion-fix'

* lewinski/radio-infinite-recursion-fix:
  [Form] Fix infinite recursion in RadioField->getName()
Fabien Potencier hace 14 años
padre
commit
37178fed01
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Component/Form/RadioField.php

+ 1 - 1
src/Symfony/Component/Form/RadioField.php

@@ -24,6 +24,6 @@ class RadioField extends ToggleField
     public function getName()
     {
         // TESTME
-        return $this->getParent() ? $this->getParent()->getName() : $this->getName();
+        return $this->getParent() ? $this->getParent()->getName() : parent::getName();
     }
 }