[html-formfu] checkbox strangeness

Geoffrey D. Bennett g at netcraft.com.au
Sun Sep 21 13:42:27 BST 2008


On Wed, Sep 17, 2008 at 03:21:12PM +0100, Carl Franks wrote:
[...]
> Okay, the Checkbox element's value() now defaults to "1".
> (and also the Radio element, which inherits from Checkbox)
> 
> I think it's likely anyone's been using it without setting the
> value(), so it shouldn't have any negative effects.
> 
> I've also updated Model/DBIC, so if the checkbox is unchecked, and the
> column is NOT NULL - it now gets set to 0 (zero), rather than the
> DEFAULT VALUE.
> 
> Can you check the tests in trunk/HTML-FormFu-Model-DBIC/t/x_roundtrip/
> [1] and verify that they do what you want?
> Specifically, the config now doesn't require either value() or
> default_empty_value() set.

Hi Carl,

Yup, if I've tested it correctly, it's all good now.  Thanks a bunch!

Regards,
-- 
Geoffrey D. Bennett, RHCE, RHCX               mailto:g at netcraft.com.au
Senior Systems Engineer                          sip:g at netcraft.com.au
NetCraft Australia Pty Ltd        http://www.netcraft.com.au/geoffrey/



More information about the HTML-FormFu mailing list