Add full name if exists in 'email-invite-subject' for user to invite

This commit is contained in:
Emile NDAGIJIMANA 2021-12-09 10:55:47 +01:00
parent 8752225409
commit 01cd1c0fdc
3 changed files with 8 additions and 6 deletions

View file

@ -1242,9 +1242,10 @@ if (Meteor.isServer) {
}
try {
const fullName = inviter.profile !== undefined ? inviter.profile.fullname : "";
const fullName = inviter.profile !== undefined && inviter.profile.fullname !== undefined ? inviter.profile.fullname : "";
const userFullName = user.profile !== undefined && user.profile.fullname !== undefined ? user.profile.fullname : "";
const params = {
user: user.username,
user: userFullName != "" ? userFullName + " (" + user.username + " )" : user.username,
inviter: fullName != "" ? fullName + " (" + inviter.username + " )" : inviter.username,
board: board.title,
url: board.absoluteUrl(),