|
@@ -8288,7 +8288,7 @@ abstract class CommonObject
|
|
|
}
|
|
|
|
|
|
// HTML, text, select, integer and varchar: take into account default value in database if in create mode
|
|
|
- if (in_array($extrafields->attributes[$this->table_element]['type'][$key], array('html', 'text', 'varchar', 'select', 'int', 'boolean'))) {
|
|
|
+ if (in_array($extrafields->attributes[$this->table_element]['type'][$key], array('html', 'text', 'varchar', 'select', 'radio', 'int', 'boolean'))) {
|
|
|
if ($action == 'create') {
|
|
|
$value = (GETPOSTISSET($keyprefix.'options_'.$key.$keysuffix) || $value) ? $value : $extrafields->attributes[$this->table_element]['default'][$key];
|
|
|
}
|