Home » HTML » HTML_QuickForm » Bug #6511
problems displaying a group element with an inner group
Details
| Submitted | 2006-01-17 21:53 UTC |
|---|---|
| From | marques at displague dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-01-17 21:53 UTC] marques at displague dot com
Description:
------------
When you display a form, with a group within a group (as the first element, at least), the grouped element will be duplicated, appearing before and after the other elements.
A var_dump of the $form object shows everything seemingly in place (no dupes) - I think the culprit is the group handling part of renderElement in the 'Default' Renderer.
Test script:
---------------
$g = array();
$g[] = HTML_QuickForm::createElement('checkbox',...);
$g[] = HTML_QuickForm::createElement('select',...);
$gObj = HTML_QuickForm::createElement('group',...,$g);
$form->addGroup(...,array($gObj,[checkboxa],[checkboxb]));
$form->display();
Expected result:
----------------
[checkbox] [select]
[checkboxa]
[checkboxb]
Actual result:
--------------
[checkbox] [select]
[checkboxa]
[checkboxb]
[checkbox] [select]
[2006-01-18 09:17 UTC] mansion at php dot net
Groups within groups are not supported in QuickForm 3.