changeset 1d7e81a5f885 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset&node=1d7e81a5f885
description:
        Compare with previous value only if PYSON value is not null

        issue10900
        review385281003
        (grafted from 5fd8d729330a81505f9390cc28fbf05153a84419)
diffstat:

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

diffs (12 lines):

diff -r 9eaea3e76d7d -r 1d7e81a5f885 src/view/form.js
--- a/src/view/form.js  Tue Oct 26 19:40:49 2021 +0200
+++ b/src/view/form.js  Thu Oct 28 09:04:55 2021 +0200
@@ -4503,7 +4503,7 @@
             // avoid modification because different encoding
             var value = this.get_encoded_value();
             var previous = field.get_client(record);
-            if (previous && Sao.common.compare(
+            if (value && previous && Sao.common.compare(
                 value, this.encoder.encode(this.decoder.decode(previous)))) {
                 value = previous;
             }

Reply via email to