diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-12 18:03:26 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-12 18:03:26 +0200 |
| commit | 0dc2bcf218ff8154875bfdfa19551304f5a874f7 (patch) | |
| tree | b30a789b11ce47684065954b112d0c169c9c23b3 /addons/web/static/src | |
| parent | e10fbbe555702dbea5c0e01a4b1798ac3940c410 (diff) | |
[fix] problem with some server errors that have a fault_code which is an int
bzr revid: nicolas.vanhoren@openerp.com-20110912160326-c8ayrno6x6appzuv
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 86c27e6952b..c12d157a668 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -150,7 +150,7 @@ openerp.web.CrashManager = openerp.web.Dialog.extend(/** @lends openerp.web.Cras on_rpc_error: function(error) { this.error = error; if (error.data.fault_code) { - var split = error.data.fault_code.split('\n')[0].split(' -- '); + var split = ("" + error.data.fault_code).split('\n')[0].split(' -- '); if (split.length > 1) { error.type = split.shift(); error.data.fault_code = error.data.fault_code.substr(error.type.length + 4); |
