projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea0316e
)
[FIX] chatter: yet another protection against reloading a non-existing menu
author
Thibault Delavallée
<tde@openerp.com>
Wed, 8 May 2013 11:39:52 +0000
(13:39 +0200)
committer
Thibault Delavallée
<tde@openerp.com>
Wed, 8 May 2013 11:39:52 +0000
(13:39 +0200)
bzr revid: tde@openerp.com-
20130508113952
-29a1xk9holyvhc13
addons/mail/static/src/js/mail.js
patch
|
blob
|
history
diff --git
a/addons/mail/static/src/js/mail.js
b/addons/mail/static/src/js/mail.js
index
527a57f
..
f3e762d
100644
(file)
--- a/
addons/mail/static/src/js/mail.js
+++ b/
addons/mail/static/src/js/mail.js
@@
-1710,7
+1710,7
@@
openerp.mail = function (session) {
*/
do_reload_menu_emails: function () {
var menu = session.webclient.menu;
- if (!menu) {
+ if (!menu || !menu.current_menu) {
return $.when();
}
return menu.rpc("/web/menu/load_needaction", {'menu_ids': [menu.current_menu]}).done(function(r) {