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

Bug #460 static in SELECT tag
Submitted: 2003-12-19 16:45 UTC
From: buteo at ukr dot net Assigned: alan_k
Status: Closed Package: HTML_Template_Flexy
PHP Version: 4.3.3 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 : 43 - 11 = ?

 
 [2003-12-19 16:45 UTC] buteo at ukr dot net
Description: ------------ Don't work function setValue() in SELECT tag, when use STATIC Or it not supported in this version? Reproduce code: --------------- PHP $this->elements['List'] = new HTML_Template_Flexy_Element('select'); $this->elements['List']->SetValue("2001"); template <select name="List" static> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> </select> Expected result: ---------------- <select name="List"> <option value="2000">2000</option> <option value="2001" selected>2001</option> <option value="2002">2002</option> </select> Actual result: -------------- <select name="List" static> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> </select>

Comments

 [2003-12-20 02:11 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. Well spotted, - I never normally specify type when creating the element - so I never go that result :) - fixed in CVS now. Regards Alan