PEAR is archived and read-only

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

Home » HTML » HTML_Template_Flexy » Bug #6152

error preparing options for select field

Details

Submitted2005-12-05 11:38 UTC
Fromkabot at seo dot pl
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.4
OSwindows 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>