diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-07-02 16:16:00 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-07-02 16:16:00 +0200 |
| commit | 7e4776f2f2edae4a59ebeda47deb076dff8fdb6d (patch) | |
| tree | d00883321ef7606c7616b3c72ef49e6cf2263a2b /addons/web/static/src/js | |
| parent | 9b6f5dca9a63230ae45e16a25c4acc54dd54b65b (diff) | |
[FIX] pyeval: be more fault tolerant to avoid wrap null values
bzr revid: mat@openerp.com-20130702141600-4s7oan9yidjrlmcc
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/pyeval.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/pyeval.js b/addons/web/static/src/js/pyeval.js index 57539dadfcb..6ce85f8d4a3 100644 --- a/addons/web/static/src/js/pyeval.js +++ b/addons/web/static/src/js/pyeval.js @@ -671,6 +671,7 @@ openerp.web.pyeval = function (instance) { if (!context.hasOwnProperty(k)) { continue; } var val = context[k]; + if (val === null) { continue; } if (val.constructor === Array) { context[k] = wrapping_list.fromJSON(val); } else if (val.constructor === Object |
