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

Request #12917 Enum empty option specified through enumOptions array.
Submitted: 2008-01-17 04:17 UTC
From: shangxiao Assigned: doconnor
Status: Closed Package: DB_DataObject_FormBuilder (version 1.0.0RC7)
PHP Version: 5.2.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


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 : 36 - 17 = ?

 
 [2008-01-17 04:17 UTC] shangxiao (David Sanders)
Description: ------------ I'd like to see the ability to just specify the empty option for selects by just specifying an entry for empty strings. Currently if field is not null then the empty string entry for enumOptions gets overridden by selectAddEmptyLabel. I know this value can just be set, but if we can do it from the array then this helps with automatically generating the options when importing db schemas n stuff ;) Test script: --------------- $do->fb_enumOptions = array( '' => 'Please select one of the following options...', 'a' => 'Option A', ...

Comments

 [2008-01-17 04:55 UTC] shangxiao (David Sanders)
Actually another thing that just occurred to me... this would be the only way to specify different empty labels for different selects wouldn't it?
 [2012-01-02 07:15 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.