Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #3154 boolean-integer fields rendered as integers texts rather than boolean checkbox
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)    
Subscription  


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

Comments

 [2005-01-10 22:41 UTC] justinpatrin
How convenient. I didn't think that the DO generator did this. I'll get it fixed later today.
 [2005-01-10 23:24 UTC] justinpatrin
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.