mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6956275d2e
commit
771e93ef18
@ -13,7 +13,7 @@ class CheckboxField extends FormField {
|
||||
}
|
||||
|
||||
function dataValue() {
|
||||
return ($this->value) ? 1 : 0;
|
||||
return ($this->value) ? 1 : NULL;
|
||||
}
|
||||
|
||||
function Value() {
|
||||
|
Loading…
Reference in New Issue
Block a user