changeset bacac5667a7a in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset&node=bacac5667a7a
description:
        Prepare release 5.0.40 [skip ci]
diffstat:

 CHANGELOG        |  3 +++
 src/view/form.js |  5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r ce1d79f7e513 -r bacac5667a7a CHANGELOG
--- a/CHANGELOG Fri Apr 30 13:52:58 2021 +0200
+++ b/CHANGELOG Wed May 05 22:47:19 2021 +0200
@@ -1,3 +1,6 @@
+Version 5.0.40 - 2021-05-05
+* Bug fixes (see mercurial logs for details)
+
 Version 5.0.39 - 2021-04-16
 * Bug fixes (see mercurial logs for details)
 
diff -r ce1d79f7e513 -r bacac5667a7a src/view/form.js
--- a/src/view/form.js  Fri Apr 30 13:52:58 2021 +0200
+++ b/src/view/form.js  Wed May 05 22:47:19 2021 +0200
@@ -1703,12 +1703,9 @@
             if (record) {
                 var digits = field.digits(record, this.factor);
                 if (digits) {
-                    step = digits[1];
+                    step = Math.pow(10, -digits[1]).toFixed(digits[1]);
                 }
             }
-            if (step !== 'any') {
-                step = Math.pow(10, -step);
-            }
             this.input.attr('step', step);
             Sao.View.Form.Float._super.display.call(this, record, field);
         }

Reply via email to