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

@ -2,6 +2,7 @@
- fixed: unable to purge trash
- fixed: EMS not displaying all users with a badge
- fixed: WebGUI::Search - joinClass not documented
- fixed: thingy's checkbox field
7.5.18
- fixed: Collateral Image Manager broken in Firefox 3

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))) {