summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-12-06 12:31:41 +0100
committerXavier Morel <xmo@openerp.com>2011-12-06 12:31:41 +0100
commit41e8b3f92c74a09fbdb524ee7ecaa7c788dfd010 (patch)
tree4b81b0ea9712bc6df8c1edf2a48f80354f35027a /addons/web/static/src
parent0eab577b40cb1d253915655b84923911101b72f6 (diff)
[FIX] correctly send context during graph's fields_get
lp bug: https://launchpad.net/bugs/898636 fixed bzr revid: xmo@openerp.com-20111206113141-nbfxp0jx4lrgo95g
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/data.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index d9bb8149ea8..58dcb2ce5af 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -425,8 +425,8 @@ openerp.web.DataSet = openerp.web.Widget.extend( /** @lends openerp.web.DataSet
return this.rpc('/web/dataset/call', {
model: this.model,
method: method,
- domain_id: domain_index || null,
- context_id: context_index || null,
+ domain_id: domain_index == undefined ? null : domain_index,
+ context_id: context_index == undefined ? null : context_index,
args: args || []
}, callback, error_callback);
},