ZF-2883: Elements in DisplayGroups do not adhere to array notation of parent sub form
Description
If you have a display group within a sub form, the elements contained by the display group do not get namespaced within the rendered form correctly, which leads to issues during form submission.
For example:
$subForm = new Zend_Form_SubForm();
$subForm->setLegend('Attributes');
$subForm->addElement('text', 'foo')
->addElement('text', 'bar')
->addDisplayGroup(array('foo', 'bar'), 'foobar');
$form = new Zend_Form();
$form->addSubForm($subForm, 'attributes');
echo $form->render(new Zend_View());
One would expect the following HTML:
Attributes
But the following is actually received:
Attributes
Comments
Posted by Wil Sinclair (wil) on 2008-03-25T22:02:49.000+0000
Resetting 'fix version priority' and 'fix version' to be re-evaluated for next release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T11:53:20.000+0000
Scheduling for next mini release.
Posted by Matthew Weier O'Phinney (matthew) on 2008-05-08T07:00:02.000+0000
Fixed in trunk and 1.5 release branch as of r9406
Posted by xqsys (xqsys.com) on 2013-03-03T02:18:02.000+0000
think it is fixed in 1.12