mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Don't append username to the user's name if it's already there
This commit is contained in:
parent
b1179c7b1e
commit
02ca5248b1
|
@ -327,8 +327,8 @@
|
||||||
item_icon = '';
|
item_icon = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// display the username if it's checked out to a user
|
// display the username if it's checked out to a user, but don't do it if the username's there already
|
||||||
if (value.username) {
|
if (value.username && !value.name.match('\\(') && !value.name.match('\\)')) {
|
||||||
value.name = value.name + ' (' + value.username + ')';
|
value.name = value.name + ' (' + value.username + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue