changeset 7128e594665e in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=7128e594665e
description:
        Search for '..' only on string value in domain parser

        The value can be a list if ';' is used.

        issue8706
        review254381002
diffstat:

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

diffs (12 lines):

diff -r c4cb182aec6b -r 7128e594665e src/common.js
--- a/src/common.js     Fri Oct 11 00:09:38 2019 +0200
+++ b/src/common.js     Fri Oct 11 11:40:42 2019 +0200
@@ -1740,7 +1740,7 @@
                     }
                     if (~['integer', 'float', 'numeric', 'datetime', 'date',
                             'time'].indexOf(field.type)) {
-                        if (value && value.contains('..')) {
+                        if ((value instanceof String) && value.contains('..')) 
{
                             var values = value.split('..', 2);
                             var lvalue = this.convert_value(field, values[0]);
                             var rvalue = this.convert_value(field, values[1]);

Reply via email to