mirror of
https://github.com/wekan/wekan.git
synced 2026-02-21 15:34:07 +01:00
Merge pull request #3946 from syndimann/fix/user-creation
Fix: Save user initials and fullname when a new user is created
This commit is contained in:
commit
7bc250ce84
1 changed files with 12 additions and 8 deletions
|
|
@ -839,20 +839,24 @@ Template.newUserPopup.events({
|
||||||
let userTeamsIdsList = userTeamsIds.split(",");
|
let userTeamsIdsList = userTeamsIds.split(",");
|
||||||
let userTms = [];
|
let userTms = [];
|
||||||
for(let i = 0; i < userTeamsList.length; i++){
|
for(let i = 0; i < userTeamsList.length; i++){
|
||||||
userTms.push({
|
if(!!userTeamsIdsList[i] && !!userTeamsList[i]) {
|
||||||
"teamId": userTeamsIdsList[i],
|
userTms.push({
|
||||||
"teamDisplayName": userTeamsList[i],
|
"teamId": userTeamsIdsList[i],
|
||||||
})
|
"teamDisplayName": userTeamsList[i],
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let userOrgsList = userOrgs.split(",");
|
let userOrgsList = userOrgs.split(",");
|
||||||
let userOrgsIdsList = userOrgsIds.split(",");
|
let userOrgsIdsList = userOrgsIds.split(",");
|
||||||
let userOrganizations = [];
|
let userOrganizations = [];
|
||||||
for(let i = 0; i < userOrgsList.length; i++){
|
for(let i = 0; i < userOrgsList.length; i++){
|
||||||
userOrganizations.push({
|
if(!!userOrgsIdsList[i] && !!userOrgsList[i]) {
|
||||||
"orgId": userOrgsIdsList[i],
|
userOrganizations.push({
|
||||||
"orgDisplayName": userOrgsList[i],
|
"orgId": userOrgsIdsList[i],
|
||||||
})
|
"orgDisplayName": userOrgsList[i],
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Meteor.call(
|
Meteor.call(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue