changeset 231ce36f6de2 in sao:5.6 details: https://hg.tryton.org/sao?cmd=changeset&node=231ce36f6de2 description: Store only once record removed or deleted
issue10236 review351891002 (grafted from c10a8104cf4147260091529263020480df86d61a) diffstat: src/model.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diffs (23 lines): diff -r a945da853e62 -r 231ce36f6de2 src/model.js --- a/src/model.js Fri Apr 30 13:46:02 2021 +0200 +++ b/src/model.js Sun May 02 10:59:12 2021 +0200 @@ -196,13 +196,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) {