Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Bug #2804 setOptions optgroup
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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 19 - 16 = ?

 
 [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) {

Comments

 [2004-11-23 00:44 UTC] alan_k
will try and look at it this before the weekend
 [2004-12-14 03:00 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.