BUGFIX: return null data from checkbox field if not set. Fixes issue with validation using str_len() to determine valid field. FIXES: http://open.silverstripe.org/ticket/6231. Thanks natmchugh

This commit is contained in:
Will Rossiter 2011-05-23 20:36:20 +12:00
parent 6956275d2e
commit 771e93ef18

View File

@ -13,7 +13,7 @@ class CheckboxField extends FormField {
}
function dataValue() {
return ($this->value) ? 1 : 0;
return ($this->value) ? 1 : NULL;
}
function Value() {