changeset 5fd8d729330a in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=5fd8d729330a
description:
Compare with previous value only if PYSON value is not null
issue10900
review385281003
diffstat:
src/view/form.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 31daa1b8a986 -r 5fd8d729330a 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
@@ -5253,7 +5253,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;
}