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

Bug #460 static in SELECT tag
Submitted: 2003-12-19 11:45 UTC Modified: 2003-12-19 21:11 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  


 [2003-12-19 11: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-19 21: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