changeset 366f80d5f722 in sao:default details: https://hg.tryton.org/sao?cmd=changeset;node=366f80d5f722 description: Check statement types in Greater PYSON
issue9002 review276711002 diffstat: src/pyson.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 61b6bde722d9 -r 366f80d5f722 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 @@ -383,7 +383,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 {