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)    

 [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', ...


 [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 by the end of next Sunday (CET). If this was a problem with the 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.