ZF-2883: Elements in DisplayGroups do not adhere to array notation of parent sub form

Issue Type: Bug Created: 2008-03-14T07:55:04.000+0000 Last Updated: 2013-03-03T02:18:02.000+0000 Status: Resolved Fix version(s): - 1.5.2 (15/May/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-3146



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:

<pre class="highlight">
$subForm = new Zend_Form_SubForm();

$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:

<pre class="highlight">



But the following is actually received:

<pre class="highlight">




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 ( on 2013-03-03T02:18:02.000+0000

think it is fixed in 1.12

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.