Home » HTML » HTML_QuickForm » Bug #491
when to addGroup("radio",$key) is passed key=0 name is not displayed
Details
| Submitted | 2003-12-24 14:19 UTC |
|---|---|
| From | webmaster at detectomania dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.4 |
| OS | Linux Debian 2.4 |
| Roadmaps | (Not assigned) |
Comments
[2003-12-24 14:19 UTC] webmaster at detectomania dot com
Description:
------------
When $key value = 0 and I try to add a radio element form, the property 'name="0"' it´s not displayed, but it works right when $key = string.
$form->addGroup("radio", $key,$foo,$foo)
<< $key = 0 >>
<input value="0" type="radio" id="qf_bab5ac" checked="checked" />
<< $key = 1 >>
<input value="0" type="radio" id="qf_9c3bc0" name="1" checked="checked" />
Reproduce code:
---------------
$form->addGroup("radio", $key , "title":',"< /BR>");
Expected result:
----------------
<< $key = 0 >>
<input value="0" type="radio" id="qf_9c3bc0" name="0" checked="checked" />
Actual result:
--------------
<< $key = 0 >>
<input value="0" type="radio" id="qf_bab5ac" checked="checked" />