[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:
Christophe Matthieu
2016-03-14 10:14:16 +01:00
committed by Géry Debongnie
parent feeac2a4f1
commit a395a54a7c
+3 -3
View File
@@ -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);
}
},
});