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 : 29 - 26 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-12-14 03:00 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!