Merge pull request #3123 from emanuelschuetze/issue3121

Show username if first and last name is empty (Fixed #3121)
This commit is contained in:
Norman Jäckel 2017-03-22 10:57:30 +01:00 committed by GitHub
commit 9ced504908

View File

@ -51,6 +51,9 @@ angular.module('OpenSlidesApp.users', [])
} else { } else {
name += [firstName, lastName].join(' '); name += [firstName, lastName].join(' ');
} }
if (name.trim() === '') {
name = this.username;
}
if (title !== '') { if (title !== '') {
name = title + ' ' + name; name = title + ' ' + name;
} }