changeset e9a4f7491775 in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=e9a4f7491775
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 56767206f09b -r e9a4f7491775 src/view/form.js
--- a/src/view/form.js  Thu Oct 28 09:03:22 2021 +0200
+++ b/src/view/form.js  Thu Oct 28 09:04:55 2021 +0200
@@ -4822,7 +4822,7 @@
             var record = this.record;
             var field = this.field;
             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