Compare with previous value only if PYSON value is not null

issue10900
review385281003
This commit is contained in:
Cédric Krier committed 2021-10-28 09:04:55 +02:00
1 parent 665dc6a402
commit e924a8a481
1 file changed
+1 -1
+1 -1
View File
@@ -5253,7 +5253,7 @@ function eval_pyson(value){
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;
}