From 5bcc1a60cd6385dfbb935cc5d6b3bcb94e5c4230 Mon Sep 17 00:00:00 2001 From: Ramil Date: Tue, 13 Oct 2020 20:14:32 +0500 Subject: [PATCH] FIX mail_to 12.0 Authored by Rachid EL GHAZI --- mail_to/static/src/js/mail_to.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_to/static/src/js/mail_to.js b/mail_to/static/src/js/mail_to.js index 7d7589f0..39467880 100644 --- a/mail_to/static/src/js/mail_to.js +++ b/mail_to/static/src/js/mail_to.js @@ -26,7 +26,7 @@ odoo.define("mail_to.MailTo", function(require) { // Value which define more recipients msg.more_recipients_value = 4; for (var i = 0; i < msg.recipients.length; i++) { - if (i >= msg.more_recipients_value) { + if ( (i >= msg.more_recipients_value) && !(msg.recipients[i] === undefined) ){ // Append names more_recipients += msg.recipients[i][1]; // Separate them with semicolon