瀏覽代碼

fix ZF-9268 - add ID to captcha element dd

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21794 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 15 年之前
父節點
當前提交
2c8a608693
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      library/Zend/Form/Element/Captcha.php

+ 1 - 1
library/Zend/Form/Element/Captcha.php

@@ -265,7 +265,7 @@ class Zend_Form_Element_Captcha extends Zend_Form_Element_Xhtml
         if (empty($decorators)) {
             $this->addDecorator('Errors')
                  ->addDecorator('Description', array('tag' => 'p', 'class' => 'description'))
-                 ->addDecorator('HtmlTag', array('tag' => 'dd'))
+                 ->addDecorator('HtmlTag', array('tag' => 'dd', 'id' => $this->getName() . '-element'))
                  ->addDecorator('Label', array('tag' => 'dt'));
         }
     }