From 506e96e333e9cfc7dc98f0c72954a92c94bb86eb Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 7 Apr 2023 17:38:06 +0300 Subject: [PATCH] float preventing same decimal mark and th separator --- client/src/views/fields/float.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/views/fields/float.js b/client/src/views/fields/float.js index a8b33704ce..5506127d03 100644 --- a/client/src/views/fields/float.js +++ b/client/src/views/fields/float.js @@ -60,6 +60,14 @@ define('views/fields/float', ['views/fields/int'], function (Dep) { else if (this.getConfig().has('decimalMark')) { this.decimalMark = this.getConfig().get('decimalMark'); } + + if (!this.decimalMark) { + this.decimalMark = '.'; + } + + if (this.decimalMark === this.thousandSeparator) { + this.thousandSeparator = ''; + } }, /**