From 19d16a1ea7198b059aebfdc0711b95704909cd15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 22 Mar 2017 09:13:33 +0100 Subject: [PATCH] Show username if first and last name is empty (Fixed #3121) --- openslides/users/static/js/users/base.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openslides/users/static/js/users/base.js b/openslides/users/static/js/users/base.js index 373825c0a..51bb25cd6 100644 --- a/openslides/users/static/js/users/base.js +++ b/openslides/users/static/js/users/base.js @@ -51,6 +51,9 @@ angular.module('OpenSlidesApp.users', []) } else { name += [firstName, lastName].join(' '); } + if (name.trim() === '') { + name = this.username; + } if (title !== '') { name = title + ' ' + name; }