[FIX] chatter: yet another protection against reloading a non-existing menu
bzr revid: tde@openerp.com-20130508113952-29a1xk9holyvhc13
This commit is contained in:
parent
ea0316e3f1
commit
2a2a539be6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue