Преглед на файлове

fix for ZF-6412

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16124 44c647ce-9c0f-0410-b52a-842ac1e357ba
stas преди 16 години
родител
ревизия
24e12235eb
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      library/Zend/Form/Decorator/Captcha/Word.php

+ 5 - 0
library/Zend/Form/Decorator/Captcha/Word.php

@@ -54,6 +54,11 @@ class Zend_Form_Decorator_Captcha_Word extends Zend_Form_Decorator_Abstract
 
         $hiddenName = $name . '[id]';
         $textName   = $name . '[input]';
+        
+        $label = $element->getDecorator("Label");
+        if($label) {
+        	$label->setOption("id", "$name-input");
+        }
 
         $placement = $this->getPlacement();
         $separator = $this->getSeparator();