Преглед изворни кода

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

* lewinski/radio-infinite-recursion-fix:
  [Form] Fix infinite recursion in RadioField->getName()
Fabien Potencier пре 14 година
родитељ
комит
37178fed01
1 измењених фајлова са 1 додато и 1 уклоњено
  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();
     }
 }