ZF-3505: (disable => false) for form helpers
Description
ok, i will just tell you what i wanna do in my view:
I want to do this in one line!
For this to work this fix has to be applied:
Index: View/Helper/FormElement.php
--- View/Helper/FormElement.php (revision 9781) +++ View/Helper/FormElement.php (working copy) @@ -117,7 +117,7 @@ && is_scalar($info['attribs']['disable'])) { // disable the element - $info['disable'] = true; + $info['disable'] = (bool)$info['attribs']['disable']; unset($info['attribs']['disable']); } elseif (isset($info['attribs']['disable']) && is_array($info['attribs']['disable'])) ``` so that disabled doesnt get assigned true when the boolean disable value is false
this is against http://framework.zend.com/svn/framework/… and NOT TESTED that's also the reason why i'm posting here as bug and not patch
Thanks and nice job with the framework
Alex
Comments
Posted by Jon Whitcraft (sidhighwind) on 2008-10-11T10:07:28.000+0000
Fixed in r11871
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:23.000+0000
Changing issues in preparation for the 1.7.0 release.