* [bug#67523,done,0.5h,0h] Fix decimal value cannot be empty error.

This commit is contained in:
wangyuting
2025-11-27 15:06:19 +08:00
parent eb138d16a4
commit f3e702a5b8
+3 -1
View File
@@ -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';
}