Page 1 of 1

Required BOOLEAN field generate errors!

PostPosted: Sat Feb 18, 2012 4:10 pm
by ippass
when my BOOLEAN data field set to be required,
and I'm using a widget:checkbox,
I'm asumming when I do not check the box means saving a zero to the table,
but it goes err telling me the field is a requied field!

and I should check it (save it as 1) before I click on the "save" button!

the required field requires the user choose yes/no,
but now , only yes could be chosed!

if I change the field to allow null,
the field would be not showing in the view mode!

is this an error? or how to solve it?

Re: Required BOOLEAN field generate errors!

PostPosted: Sun Feb 19, 2012 10:20 am
by shannah
I guess this could be classified as a bug. The only thing is it's not trivial to fix because some applications may rely on the current behaviour (i.e. required means that it must be checked).

If you can change the default value (in MySQL) of the field to 0 this may be a workaround that will solve your problem.

-Steve