浏览代码

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();
     }
 }