changeset 871dd915a675 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=871dd915a675
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 d8c2aeb22aec -r 871dd915a675 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
@@ -5110,7 +5110,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;
}