Home » Database » DB_DataObject_FormBuilder » Bug #3154
boolean-integer fields rendered as integers texts rather than boolean checkbox
Details
| Submitted | 2005-01-10 21:16 UTC |
|---|---|
| From | ate2 at cornell dot edu |
| Assigned | justinpatrin |
| Status | Closed |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.10 |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-01-10 21:16 UTC] ate2 at cornell dot edu
Description:
------------
The case statement which recognizes boolean fields and calls _createCheckbox to render them correctly is called after the check for DB_DATAOBJECT_INT in _generateForm(). Thus the added functionality for handling booleans is not used in the form builder when a field is defined as both an int and a bool (as is the case in mysql tables where bools are tinyint(1)). To fix it for my project, I simply cut and pasted the BOOL case before the INT case in the formbuilder class.