Explorar o código

[Form] Fix infinite recursion in RadioField->getName()

Matthew Lewinski %!s(int64=14) %!d(string=hai) anos
pai
achega
4f54aacfc7
Modificáronse 1 ficheiros con 1 adicións e 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();
     }
 }