Quellcode durchsuchen

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

Matthew Lewinski vor 14 Jahren
Ursprung
Commit
4f54aacfc7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();
     }
 }