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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-01-10 23:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!