[FIX] web: AbstractManyField: many to one set dataset.ids without use abstract field api. Need to clone the list to avoid the duplicate record on create.
This commit is contained in:
@@ -513,7 +513,7 @@ var AbstractManyField = common.AbstractField.extend({
|
||||
this.set('value', []);
|
||||
this.starting_ids = [];
|
||||
this.view.on("load_record", this, function () {
|
||||
self.starting_ids = self.get('value');
|
||||
self.starting_ids = self.get('value').slice();
|
||||
});
|
||||
this.dataset.on('dataset_changed', this, function() {
|
||||
// the editable lists change the dataset without call AbstractManyField methods
|
||||
|
||||
Reference in New Issue
Block a user