Issues

ZF-3505: (disable => false) for form helpers

Issue Type: Bug Created: 2008-06-24T13:43:12.000+0000 Last Updated: 2008-11-13T14:10:23.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Alexander Lanin (alexl) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_View

Related issues: - ZF-3502

Attachments:

Description

ok, i will just tell you what i wanna do in my view:

<pre class="highlight">
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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts