summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-09-08 13:10:24 +0200
committerXavier Morel <xmo@openerp.com>2011-09-08 13:10:24 +0200
commitea6e7c4be421aeb1f9b23be0cfeee8161c4c2922 (patch)
tree017adbce6c61c51bc39bc9078aef625711efb643 /addons/web/static/src/js/data.js
parentbba27daf04ff27b1f3c71e0dee7c73375efc11a4 (diff)
[FIX] Signature change in DataSet.write had not been performed in child class BufferedDataSet, resulting in success callback not being correctly called on successful save of row
lp bug: https://launchpad.net/bugs/842644 fixed bzr revid: xmo@openerp.com-20110908111024-qfr6xlrw9ecy7m6y
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index 4b4523a2723..f980b159825 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -616,7 +616,7 @@ openerp.web.BufferedDataSet = openerp.web.DataSetStatic.extend({
to_return.resolve({result: cached.id});
return to_return.promise();
},
- write: function (id, data, callback) {
+ write: function (id, data, options, callback) {
var self = this;
var record = _.detect(this.to_create, function(x) {return x.id === id;});
record = record || _.detect(this.to_write, function(x) {return x.id === id;});