mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Code fixes
This commit is contained in:
parent
fb60928a75
commit
824e225adf
@ -276,10 +276,10 @@ export class FormFieldModel extends FormWidgetModel {
|
||||
}
|
||||
break;
|
||||
case FormFieldTypes.NUMBER:
|
||||
this.form.values[this.id] = parseInt(this.value);
|
||||
this.form.values[this.id] = parseInt(this.value, 10);
|
||||
break;
|
||||
case FormFieldTypes.AMOUNT:
|
||||
this.form.values[this.id] = parseFloat(this.value);
|
||||
this.form.values[this.id] = this.enableFractions ? parseFloat(this.value) : parseInt(this.value, 10);
|
||||
break;
|
||||
default:
|
||||
if (!FormFieldTypes.isReadOnlyType(this.type)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user