mirror of
https://github.com/wekan/wekan.git
synced 2026-01-07 18:18:50 +01:00
fix user creation to include fullname and initials
This commit is contained in:
parent
68ad58431d
commit
7706839fbe
1 changed files with 12 additions and 8 deletions
|
|
@ -839,20 +839,24 @@ Template.newUserPopup.events({
|
|||
let userTeamsIdsList = userTeamsIds.split(",");
|
||||
let userTms = [];
|
||||
for(let i = 0; i < userTeamsList.length; i++){
|
||||
userTms.push({
|
||||
"teamId": userTeamsIdsList[i],
|
||||
"teamDisplayName": userTeamsList[i],
|
||||
})
|
||||
if(!!userTeamsIdsList[i] && !!userTeamsList[i]) {
|
||||
userTms.push({
|
||||
"teamId": userTeamsIdsList[i],
|
||||
"teamDisplayName": userTeamsList[i],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
let userOrgsList = userOrgs.split(",");
|
||||
let userOrgsIdsList = userOrgsIds.split(",");
|
||||
let userOrganizations = [];
|
||||
for(let i = 0; i < userOrgsList.length; i++){
|
||||
userOrganizations.push({
|
||||
"orgId": userOrgsIdsList[i],
|
||||
"orgDisplayName": userOrgsList[i],
|
||||
})
|
||||
if(!!userOrgsIdsList[i] && !!userOrgsList[i]) {
|
||||
userOrganizations.push({
|
||||
"orgId": userOrgsIdsList[i],
|
||||
"orgDisplayName": userOrgsList[i],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Meteor.call(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue