Store only once record removed or deleted

issue10236
review351891002
This commit is contained in:
Cédric Krier committed 2021-05-02 10:59:12 +02:00
1 parent 0d65678df6
commit b6af2a0830
1 file changed
+6 -2
+6 -2
View File
@@ -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) {