PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #5116

Groups within groups do not display properly -- last element appears twice.

Details

Submitted2005-08-17 02:40 UTC
Fromasppsa at gmail dot com
StatusBogus
PackageHTML_QuickForm
PHP Version5.0.4
OSNetBSD
Roadmaps(Not assigned)

Comments

[2005-08-17 02:40 UTC] asppsa at gmail dot com

Description:
------------
Using:
HTML_Common 1.2.1
HTML_QuickForm 3.2.5

When displaying a list using groups within groups (to create a 2-d effect), the last element in the outer group (which is itself a group) displays twice. See my code.

i.e. I am getting the following:
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Hello 4 getElements ();

for ($i = 0; $i getElements ();

$elts2[] =& new HTML_QuickForm_static (null, null, "Hello $i");

$elts[] =& $qfg2;
}

$form =& new HTML_QuickForm ();
$form->addElement ($qfg);
$form->display ();
?>

Expected result:
----------------

Hello 0

Hello 1



Hello 2

Hello 3



Hello 4

Actual result:
--------------

Hello 0

Hello 1



Hello 2

Hello 3



Hello 4

Hello 4

</form>

[2005-08-17 07:11 UTC] bmansion at mamasam dot com

Thank you for taking the time to write to us, but this is not
a bug.

Groups within groups are not supported in QuickForm 3.