Index: branches/unlabeled/unlabeled-1.108.2/globals.php =================================================================== diff -u -r5718 -r5796 --- branches/unlabeled/unlabeled-1.108.2/globals.php (.../globals.php) (revision 5718) +++ branches/unlabeled/unlabeled-1.108.2/globals.php (.../globals.php) (revision 5796) @@ -2025,8 +2025,15 @@ for ($i = 0; $i < $CustomFields->NumItems(); $i++) { $objField =& $CustomFields->GetItemRefByIndex($i); $field_name = $objField->Get('FieldName'); - + $element_type = $objField->Get('ElementType'); + $value = getCustomValue($field_name); + + if ($element_type == 'checkbox' && $value === false) { + // unchecked checkboxes are not submitted + $value = 0; + } + if ($value !== false) { $objCustomEdit->SetFieldValue($objField->Get('CustomFieldId'), $resource_id, $value); $data_changed = true;