Zend Framework

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

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.6.0RC1
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Form
  • Labels:
    None

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.

Activity

Hide
Travis Pew added a comment -

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

Show
Travis Pew added a comment - This behavior was changed for ZF-2735 with r8633, but the phpdoc was never updated.
Hide
Matthew Weier O'Phinney added a comment -

Docblock updated in trunk and 1.9 release branch

Show
Matthew Weier O'Phinney added a comment - Docblock updated in trunk and 1.9 release branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: