changeset 76c6d13e9b48 in sao:4.6
details: https://hg.tryton.org/sao?cmd=changeset;node=76c6d13e9b48
description:
Search for '..' only on string value in domain parser
The value can be a list if ';' is used.
issue8706
review254381002
(grafted from 7128e594665eef8b9e094b8646f6d381c5118d53)
diffstat:
src/common.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fb844a819a5b -r 76c6d13e9b48 src/common.js
--- a/src/common.js Sun Oct 06 13:53:38 2019 +0200
+++ b/src/common.js Fri Oct 11 11:40:42 2019 +0200
@@ -1679,7 +1679,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]);