ZF-3881: Zend_Form::setDefaults( array $defaults ) does not reset the values null
Description
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.
Comments
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