Home » HTML » HTML_Template_Flexy » Bug #2804
setOptions optgroup
Details
| Submitted | 2004-11-22 07:08 UTC |
|---|---|
| From | tom at cluster dot ee |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | 5.0.2 |
| OS | Linux |
| 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) {