mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 18:54:22 +01:00
profile.name is called profile.fullname (#615)
The name of the profile field was changed log ago. This fixes the remaining wrong references.
This commit is contained in:
parent
36f17a5717
commit
855f56c61a
3 changed files with 5 additions and 5 deletions
|
|
@ -262,8 +262,8 @@ if (Meteor.isServer) {
|
|||
Users.before.insert((userId, doc) => {
|
||||
doc.profile = doc.profile || {};
|
||||
|
||||
if (!doc.username && doc.profile.name) {
|
||||
doc.username = doc.profile.name.toLowerCase().replace(/\s/g, '');
|
||||
if (!doc.username && doc.profile.fullname) {
|
||||
doc.username = doc.profile.fullname.toLowerCase().replace(/\s/g, '');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue