PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #2804

setOptions optgroup

Details

Submitted2004-11-22 07:08 UTC
Fromtom at cluster dot ee
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP Version5.0.2
OSLinux
Roadmaps(Not assigned)

Comments

[2004-11-22 07:08 UTC] tom at cluster dot ee

Description:
------------
The function setOptions in Flexy/Element.php allows to use optgroup tag in select tags. Currently when trying to use optgroup, it tries to use wrong variable.

Reproduce code:
---------------
--- old/Element.php 2004-08-25 09:51:01.000000000 +0300
+++ new/Element.php 2004-11-22 09:20:03.201239712 +0200
@@ -397,7 +397,7 @@

foreach($array as $k=>$v) {
if (is_array($v)) { // optgroup
- $child = new HTML_Template_Flexy_Element($namespace . 'optgroup',array('label'=>$kk));
+ $child = new HTML_Template_Flexy_Element($namespace . 'optgroup',array('label'=>$k));
foreach($v as $kk=>$vv) {
$atts=array();
if (($kk != $vv) && !$noValue) {