diff options
| author | Olivier Dony <odo@openerp.com> | 2014-01-07 17:11:54 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2014-01-07 17:11:54 +0100 |
| commit | 1bb2fccb9d92e76e8a0f1c99ebbd27cb30618444 (patch) | |
| tree | 3de5d572ffdb2abcf521bff587a44af0fa7114d7 /addons/web/static/src | |
| parent | b2fa77fd310e98a79caf2f0689e1a64d7c37c702 (diff) | |
[FIX] web: avoid crash when the Home client action is called without `action` param
E.g. this could happen when the HistoryBack client action
was unable to restore the previous breadcrumbs item, and
used the Home action as fallback. Could be reproduce by
performing a successful import from an action without
menu and context, such as what you get after refreshing
your browser.
bzr revid: odo@openerp.com-20140107161154-430y7hlf9mvtfyfe
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 c9128683f83..b51f86ba195 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -819,7 +819,7 @@ instance.web.client_actions.add("history_back", "instance.web.HistoryBack"); */ instance.web.Home = function(parent, action) { var url = '/' + (window.location.search || ''); - instance.web.redirect(url, action.params && action.params.wait); + instance.web.redirect(url, action && action.params && action.params.wait); }; instance.web.client_actions.add("home", "instance.web.Home"); |
