Index: branches/unlabeled/unlabeled-1.24.2/kernel/include/config.php =================================================================== diff -u -r5437 -r5796 --- branches/unlabeled/unlabeled-1.24.2/kernel/include/config.php (.../config.php) (revision 5437) +++ branches/unlabeled/unlabeled-1.24.2/kernel/include/config.php (.../config.php) (revision 5796) @@ -343,7 +343,7 @@ $o .= 'default_value == $parts[0]) ? ' checked>' : '>'; - $o .= (substr($s,0,1)=="+") ? $s : prompt_language($s); + $o .= (substr($s,0,1)=="+") ? substr($s,1) : prompt_language($s); } } $this->TabIndex++; Index: branches/unlabeled/unlabeled-1.13.2/kernel/include/customfield.php =================================================================== diff -u -r4760 -r5796 --- branches/unlabeled/unlabeled-1.13.2/kernel/include/customfield.php (.../customfield.php) (revision 4760) +++ branches/unlabeled/unlabeled-1.13.2/kernel/include/customfield.php (.../customfield.php) (revision 5796) @@ -123,7 +123,7 @@ $ml_formatter =& $this->Application->recallObject('kMultiLanguage'); foreach ($custom_fields as $custom_id => $custom_info) { $custom_name = $ml_formatter->LangFieldName('cust_'.$custom_id); - $custom_info['Value'] = getArrayValue($custom_data, $custom_name) ? $custom_data[$custom_name] : ''; + $custom_info['Value'] = $custom_data[$custom_name]; $custom_info['CustomDataId'] = 0; $this->AddItemFromArray($custom_info); } 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;