Просмотр исходного кода

fix ZF-8268

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19278 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas 16 лет назад
Родитель
Сommit
63f7b65b6f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      library/Zend/Form/Decorator/Captcha/Word.php

+ 1 - 1
library/Zend/Form/Decorator/Captcha/Word.php

@@ -57,7 +57,7 @@ class Zend_Form_Decorator_Captcha_Word extends Zend_Form_Decorator_Abstract
 
         $label = $element->getDecorator("Label");
         if($label) {
-            $label->setOption("id", "$name-input");
+            $label->setOption("id", $element->getId()."-input");
         }
 
         $placement = $this->getPlacement();