From 8f20e57599966fb32e2ecfcdccba16352dfa9470 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 12 May 2015 13:21:08 +0000 Subject: [PATCH] Make sure the popup has value and not false, the mail integration hooks may not be registered yet --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index bc10e7843f..23c20b0f34 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2630,7 +2630,7 @@ app.classes.mail = AppJS.extend( if (typeof _action.data != 'undefined' ) { - if (typeof _action.data.popup != 'undefined') w_h = _action.data.popup.split('x'); + if (typeof _action.data.popup != 'undefined' && _action.data.popup) w_h = _action.data.popup.split('x'); if (typeof _action.data.mail_import != 'undefined') var mail_import_hook = _action.data.mail_import; }