changeset c0d58c39d465 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=c0d58c39d465
description:
        Check statement types in Greater PYSON

        issue9002
        review276711002
        (grafted from 366f80d5f722d35dd39fa87faef3c3286083959d)
diffstat:

 src/pyson.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 260935853afe -r c0d58c39d465 src/pyson.js
--- a/src/pyson.js      Tue Feb 04 18:28:09 2020 +0100
+++ b/src/pyson.js      Tue Feb 04 18:30:04 2020 +0100
@@ -376,7 +376,7 @@
             for (var i = 0; i < 2; i++) {
                 var statement = statements[i];
                 if (statement instanceof Sao.PYSON.PYSON) {
-                    if (jQuery(statement).not(['number']).length) {
+                    if (jQuery(statement.types()).not(['number']).length) {
                         throw 'statement must be an integer or a float';
                     }
                 } else {

Reply via email to