PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject_FormBuilder » Bug #3154

boolean-integer fields rendered as integers texts rather than boolean checkbox

Details

Submitted2005-01-10 21:16 UTC
Fromate2 at cornell dot edu
Assignedjustinpatrin
StatusClosed
PackageDB_DataObject_FormBuilder
PHP Version4.3.10
OSIrrelevant
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.