ZF-9666: Forms with SubForms Having Elements with Same Names Populate Incorrectly
Description
The following code:
$form = new Zend_Form; $form->addElement('text', 'foo'); $subForm = new Zend_Form_SubForm; $subForm->addElement('text', 'foo'); $form->addSubForm($subForm, 'mySubForm'); $form->populate(array('foo' => 'bar')); echo $form;
Renders as:
The sub form's 'foo' should not be populated with 'bar'.
Comments
Posted by Christian Albrecht (alab) on 2010-04-13T01:13:46.000+0000
This patch fixes the issue, unit test included
Posted by Ewan Edwards (eskwayrd) on 2010-04-13T14:44:30.000+0000
This patch appears to solve the problem. Thanks for attending to this so quickly!
Posted by Christian Albrecht (alab) on 2010-04-16T07:32:50.000+0000
This Patch duplicates now Patch #4 of ZF-9607