Home » HTML » HTML_Template_Flexy » Bug #6152
error preparing options for select field
Details
| Submitted | 2005-12-05 11:38 UTC |
|---|---|
| From | kabot at seo dot pl |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | 4.3.4 |
| OS | windows xp |
| Roadmaps | (Not assigned) |
Comments
[2005-12-05 11:38 UTC] kabot at seo dot pl
Description:
------------
when i set table splitted in groups for select with keys and values with dependence that $key == (int)$value, generated <option> tag will not contain value attribute
Test script:
---------------
$opt = array('group'=>array(1=>'001 Test'));
$elem['sel1'] = new HTML_Template_Flexy_Element();
$elem['sel1']->setOptions($opt);
Expected result:
----------------
<select name="sel1"><optgroup label="group"><option value="1">001 Test</option></optgroup></select>
Actual result:
--------------
<select name="sel1"><optgroup label="group"><option>001 Test</option></optgroup></select>