diff --git a/client/src/views/fields/autoincrement.js b/client/src/views/fields/autoincrement.js index 64c376bba3..93ae07709e 100644 --- a/client/src/views/fields/autoincrement.js +++ b/client/src/views/fields/autoincrement.js @@ -38,6 +38,8 @@ Espo.define('views/fields/autoincrement', 'views/fields/int', function (Dep) { readOnly: true, + disableFormatting: true, + parse: function (value) { value = (value !== '') ? value : null; if (value !== null) { diff --git a/client/src/views/fields/float.js b/client/src/views/fields/float.js index 58de3a80e4..3fb27d4e00 100644 --- a/client/src/views/fields/float.js +++ b/client/src/views/fields/float.js @@ -56,6 +56,9 @@ Espo.define('views/fields/float', 'views/fields/int', function (Dep) { }, formatNumber: function (value) { + if (this.disableFormatting) { + return value; + } if (value !== null) { var parts = value.toString().split("."); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandSeparator); diff --git a/client/src/views/fields/int.js b/client/src/views/fields/int.js index de2b5938ec..f4ef1e527b 100644 --- a/client/src/views/fields/int.js +++ b/client/src/views/fields/int.js @@ -70,6 +70,9 @@ Espo.define('views/fields/int', 'views/fields/base', function (Dep) { }, formatNumber: function (value) { + if (this.disableFormatting) { + return value; + } if (value !== null) { var stringValue = value.toString(); stringValue = stringValue.replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandSeparator);