ZF-3881: Zend_Form::setDefaults( array $defaults ) does not reset the values null

Issue Type: Bug Created: 2008-08-07T02:33:59.000+0000 Last Updated: 2009-09-18T12:04:18.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Huszár Andor (huandy) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments: - ZF-3881.patch.txt


the phpdoc says: "If an element's name is not specified as a key in the array, its value is set to null."

well it doesn't do what it says. I suppose there is a missing else clause in the first if statement of this method, where it should call the setDefault( $name, null ) method to reset the form elements value

this is unless I got something misunderstood.


Posted by Travis Pew (travisp) on 2009-09-18T06:47:46.000+0000

This behavior was changed for ZF-2735 with r8633, but the phpdoc was never updated.

Posted by Matthew Weier O'Phinney (matthew) on 2009-09-18T12:04:18.000+0000

Docblock updated in trunk and 1.9 release branch

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.