* [bug#67523,done,0.5h,0h] Fix decimal value cannot be empty error.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user