mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01:00
Add full name if exists in 'email-invite-subject' for user to invite
This commit is contained in:
parent
8752225409
commit
01cd1c0fdc
3 changed files with 8 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue