Home » Database » DB_DataObject_FormBuilder » Bug #3233
Add option to specify label for selectAddEmtpy
Details
| Request #3233 | Add option to specify label for selectAddEmtpy |
|---|---|
| Submitted | 2005-01-19 00:56 UTC |
| From | jamie dot alessio at ucop dot edu |
| Assigned | justinpatrin |
| Status | Closed |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 5.0.3 |
| OS | n/a |
| Roadmaps | (Not assigned) |
Comments
[2005-01-19 00:56 UTC] jamie dot alessio at ucop dot edu
Description:
------------
It would be nice to be able to specify a label that is used if the 'selectAddEmpty' option is true. Perhaps a new option called 'selectAddEmtpyLabel' could be used? The relevant code change is in FormBuilder.php at line 1641. Change:
if ($selectAddEmpty) {
$list[''] = '-- Select --';
}
to something like:
if ($selectAddEmpty) {
if($selectAddEmptyLabel)
$list[''] = $selectAddEmptyLabel;
else
$list[''] = '';
}
[2005-01-19 17:58 UTC] jamie dot alessio at ucop dot edu
I grabbed the latest code from CVS to test this and the added code works as expected. Thanks.