diff --git a/lib/form/form.class.php b/lib/form/form.class.php index bc38b8ea15..5eb4ab78f0 100644 --- a/lib/form/form.class.php +++ b/lib/form/form.class.php @@ -180,7 +180,9 @@ class form extends fixer } else { - $type = $field->type == 'int' ? 'int' : 'string'; + $type = 'string'; + if($field->type == 'int') $type = 'int'; + if($field->type == 'decimal') $type = 'float'; $configObject[$field->field] = array('required' => $required, 'type' => $type, 'default' => ''); if($field->control == 'richtext') $configObject[$field->field]['control'] = 'editor'; }