PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.