Issues

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

Issue Type: Bug Created: 2011-09-09T12:18:22.000+0000 Last Updated: 2012-08-15T13:46:00.000+0000 Status: Resolved Fix version(s): - 1.11.11 (29/Sep/11)

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

Related issues: - ZF-10958

Attachments:

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.

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

This is weird foobar This is weird //expected (element now named random_element_name)

foobar This is weird

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 ;)

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts