ZF-9149: Posible bug in attribute disabled="disabled" in Zend_Form_Element_CheckBox

Issue Type: Bug Created: 2010-02-11T09:01:53.000+0000 Last Updated: 2011-05-29T04:06:55.000+0000 Status: Open Fix version(s): Reporter: Lukas Drbal (lestr) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-9329

Attachments: - FormCheckbox.php.patch


Example form:

<pre class="highlight">
class Form_Test extends Zend_Form
    public function init() {
        $checkbox = $this->createElement('checkbox','foo',array('label' => 'foo'));     
        $submit = $this->createElement('submit','submit');      

Actual rendering result for checkbox: __

Expected result:

When i use $checkbox->setAttrib('disable',true) in form, is all right.


Posted by Lukas Drbal (lestr) on 2010-02-11T09:07:14.000+0000

This is my patch and unittest for this posible bug

Posted by Lukas Drbal (lestr) on 2010-02-11T09:08:23.000+0000

sorry for bad priority

Posted by Lukas Drbal (lestr) on 2010-02-11T09:12:04.000+0000

repair code formating :-/

Posted by Karsten Wutzke (kwutzke) on 2011-01-19T04:54:00.000+0000

Both issues show the rendering produces a redundant extra hidden input before the checkbox.

Posted by Karsten Wutzke (kwutzke) on 2011-01-19T04:54:59.000+0000

Related and linked to ZF-1666, however that issue still prevails and should be reopened.

Posted by Erin Atkinson (keepcase) on 2011-05-28T18:26:08.000+0000

Hi Lukas, we patched FormCheckbox.php with your patch file and noticed when we used the disable feature the actual checkbox could not be clicked.

Posted by Brian (tastywheat) on 2011-05-29T04:06:55.000+0000

We used 1.11.6 Zend Library when we had this issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.