BUGFIX: merged patch from ajshort to fix checkbox fields in the cms

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64770 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2008-10-25 11:19:31 +00:00
parent 17705be0bc
commit 03830e1baa

View File

@ -19,7 +19,7 @@ class CheckboxField extends FormField {
'class' => ($this->extraClass() ? $this->extraClass() : ''),
'id' => $this->id(),
'name' => $this->Name(),
'value' => 1,
'checked' => $this->value ? 'checked' : '',
'tabindex' => $this->getTabIndex()
);