ZF-11729: addDisplayGroup doesnt remove elements from Form for certain element names


if you name your element with a dash like fany-element-name and add them to a display group. They appear inside the displaygroup and still outside.


Can you please provide: * A simple form that demonstrates/reproduces the issue * The expected markup from rendering the form * The actual markup from rendering the form

This will make it easier for us to verify the issue, as well as provide a test for it.


//code in action $form = new Zend_Form(); $form->addElement('text','random-element-name',array( 'label'=>'This is weird', 'value'=>'think its a bug', )); $form->addDisplayGroup(array('random-element-name'), 'foobar',array( 'legend'=>'foobar', )); $this->view->form = $form;


This is weird
This is weird

//expected (element now named random_element_name)

This is weird

I've verified the issue, and am working on a fix.

Fixed in trunk and 1.11 release branch.

great job. kthxbye ;)