Issues

ZF-12249: Zend_Form::addElement fail to make element name consistent.

Description

say, $form->addElement('text', 'field-name', $options); Then, the element can be retrieved by $form->field-name. However, $form->field-name->getName() == fieldname.

The reason is that Zend_Form_Element will filter ($name) before setting it. However form still has it in Zend_Form::$_elements[].

The side effect of this is that when doing $form->isValid($post). This field will lost track of posted value.

Comments

No comments to display