[FIX] web: clone values in read_ids (avoid external changes)

Some widgets like list editable use and change values dictionary. When the write is called, the values in the cache is equal to the changes send => field no dirty => no change triggered.
This commit is contained in:
Christophe Matthieu
2015-09-24 14:13:55 +02:00
parent 0a57d37b35
commit 7a465bf7c7
+1 -1
View File
@@ -843,7 +843,7 @@ var BufferedDataSet = DataSetStatic.extend({
var return_records = function() {
var records = _.map(ids, function(id) {
return self.get_cache(id).values;
return _.clone(self.get_cache(id).values);
});
if (self.debug_mode) {
if (_.include(records, undefined)) {