ZF-3742: Elements in Display Groups are not updated with appropriate ElementBelongsTo setting

Issue Type: Bug Created: 2008-07-24T10:15:27.000+0000 Last Updated: 2008-07-25T07:36:42.000+0000 Status: Resolved Fix version(s): - 1.5.3 (28/Jul/08)

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

Related issues: Attachments:


When elements belong to a DisplayGroup and the form has specified an elementsBelongTo setting, the setting is not being used to determine the element name and id correctly. For instance:

<pre class="highlight">
    new Zend_Form_Element_Text('foo'),
    new Zend_Form_Element_Text('bar'),
    new Zend_Form_Element_Text('baz'),
    new Zend_Form_Element_Text('bat'),
$form->addDisplayGroup(array('bar', 'baz'), 'barbaz');

When the form is rendered, all elements should have a name of 'myform[]' and an id of 'myform-'. However, the elements inside the display group do not.


Posted by Matthew Weier O'Phinney (matthew) on 2008-07-25T07:36:42.000+0000

Added test to verify that this was fixed with changes added for a previous issue. Test merged to 1.5 and 1.6 release branches.

Have you found an issue?

See the Overview section for more details.


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

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