fixed: thingy's checkbox field

This commit is contained in:
Yung Han Khoe 2008-07-29 09:45:55 +00:00
parent eea6d818e9
commit cc76e3b319
2 changed files with 5 additions and 1 deletions

View file

@ -684,7 +684,10 @@ sub getFormElement {
$param{fieldType} = $data->{fieldType};
if ($data->{fieldType} eq "Checkbox") {
$param{value} = ($data->{defaultValue} =~ /checked/xi) ? 1 : "";
$param{value} = 1;
if ($data->{value} == 1){
$param{checked} = 1;
}
}
if (WebGUI::Utility::isIn($data->{fieldType},qw(SelectList CheckList SelectBox Attachments SelectSlider))) {