Procházet zdrojové kódy

fixes issue #ZF-6467. if disable attrib is true then hidden form field is not printed.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18577 44c647ce-9c0f-0410-b52a-842ac1e357ba
klassicd před 16 roky
rodič
revize
584cb088d9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      library/Zend/View/Helper/FormCheckbox.php

+ 2 - 2
library/Zend/View/Helper/FormCheckbox.php

@@ -87,9 +87,9 @@ class Zend_View_Helper_FormCheckbox extends Zend_View_Helper_FormElement
             $endTag= '>';
         }
 
-        // build the element
+        // build the element 
         $xhtml = '';
-        if (!strstr($name, '[]')) {
+        if (!$disable && !strstr($name, '[]')) {
             $xhtml = $this->_hidden($name, $checkedOptions['uncheckedValue']);
         }
         $xhtml .= '<input type="checkbox"'