changeset c10a8104cf41 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=c10a8104cf41
description:
Store only once record removed or deleted
issue10236
review351891002
diffstat:
src/model.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r a59a1995bc0b -r c10a8104cf41 src/model.js
--- a/src/model.js Sun May 02 10:30:14 2021 +0200
+++ b/src/model.js Sun May 02 10:59:12 2021 +0200
@@ -200,13 +200,17 @@
this.record_deleted.splice(
this.record_deleted.indexOf(record), 1);
}
- this.record_removed.push(record);
+ if (!~this.record_removed.indexOf(record)) {
+ this.record_removed.push(record);
+ }
} else {
if (~this.record_removed.indexOf(record)) {
this.record_removed.splice(
this.record_removed.indexOf(record), 1);
}
- this.record_deleted.push(record);
+ if (!~this.record_deleted.indexOf(record)) {
+ this.record_deleted.push(record);
+ }
}
}
if (record.group.parent) {