ZF-11729: addDisplayGroup doesnt remove elements from Form for certain element names
Description
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.
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.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2011-09-09T13:51:13.000+0000
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.
Thanks!
Posted by phil (philicious) on 2011-09-09T14:07:54.000+0000
//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;
//output
//expected (element now named random_element_name)
Posted by Matthew Weier O'Phinney (matthew) on 2011-09-09T14:58:43.000+0000
I've verified the issue, and am working on a fix.
Posted by Matthew Weier O'Phinney (matthew) on 2011-09-09T15:14:49.000+0000
Fixed in trunk and 1.11 release branch.
Posted by phil (philicious) on 2011-09-09T15:36:36.000+0000
great job. kthxbye ;)