ZF-4006: Zend_Dojo_View_Helper_Checkbox works incorrect

Issue Type: Bug Created: 2008-08-20T01:18:13.000+0000 Last Updated: 2008-09-02T10:38:55.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Constantine Yurevich (cyurevich) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: Attachments:


Here is example: <?= $this->checkBox( "checkBoxName", '0', //current value array(), array(), array( 'checkedValue' => '1', 'un–°heckedValue' => '0', ) );

Our current value is '0', as you can see in second param. And now it is impossible to make this checkbox ever checked, because it generates the following code in html: As you can see - the value always woul be '0' and there is no possibility to make it '1';

Now, last 2 rows of Zend_Dojo_View_Helper_CheckBox are the following: // and final element $html .= $this->_createFormElement($id, $value, $params, $attribs);

And to fix this bug they should be changed to: // and final element $html .= $this->_createFormElement($id, $checkboxInfo['checkedValue'], $params, $attribs);


Posted by Matthew Weier O'Phinney (matthew) on 2008-08-22T14:51:51.000+0000

Scheduling for RC3

Posted by Matthew Weier O'Phinney (matthew) on 2008-08-23T20:48:38.000+0000

Fixed in trunk and 1.6 release branch.

Posted by Wil Sinclair (wil) on 2008-09-02T10:38:55.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


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

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