[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:
Christophe Matthieu
2015-04-20 10:51:02 +02:00
parent 3c8aafa753
commit b4cb456800
@@ -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