Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mail_to/static/src/js/mail_to.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ( (i >= msg.more_recipients_value) && !(msg.recipients[i] === undefined) ){
if ( (i >= msg.more_recipients_value) && (msg.recipients[i] !== undefined) ){

// Append names
more_recipients += msg.recipients[i][1];
// Separate them with semicolon
Expand Down