[FIX] web: dataset alter_ids method must use options
x2m send_commands add options for all command to avoid onchange trigger for internal change.
This commit is contained in:
committed by
Géry Debongnie
parent
feeac2a4f1
commit
a395a54a7c
@@ -940,11 +940,11 @@ var BufferedDataSet = DataSetStatic.extend({
|
||||
this.evict_record(id);
|
||||
return this._super(id, signal);
|
||||
},
|
||||
alter_ids: function(n_ids) {
|
||||
alter_ids: function(n_ids, options) {
|
||||
var dirty = !_.isEqual(this.ids, n_ids);
|
||||
this._super(n_ids);
|
||||
this._super(n_ids, options);
|
||||
if (dirty) {
|
||||
this.trigger("dataset_changed", n_ids);
|
||||
this.trigger("dataset_changed", n_ids, options);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user