Re: FB booleanFields

From: Date: Mon, 17 Jan 2005 18:41:16 +0000
Subject: Re: FB booleanFields
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16968@lists.php.net to get a copy of this message
On Mon, 17 Jan 2005 18:32:54 +0100, Rodrigo Alvarez <papipo@gmail.com> wrote: > Hi PEARs, > > var $fb_booleanFields = array('highlight'); > highlight is a tinyint(1) null default 0 field. > It is shown as a textfield with zero inside, not a checkbox. > Why? :_ > > Thanks. > What version of FormBuilder do you have unstalled? This was added in 0.11.1. Actually, you shouldn't need to set booleanFields if the field is a tinyint(1), DataObject sets those as booleans automatically. (Note: that last bit is only in the CVS version of FormBuilder at the moment, You still need to set the field in booleanFields if you're using release 0.11.1). -- Justin Patrin

« previous php.pear.general (#16968) next »