mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Merge pull request #12439 from uberbrady/fix_bootstrap_username_doubling
Fixed: username doubles on 'checked-out-to' column if display is resized [sc-19869], [fd-33242]
This commit is contained in:
commit
7a23398c0c
|
@ -327,8 +327,8 @@
|
|||
item_icon = '';
|
||||
}
|
||||
|
||||
// display the username if it's checked out to a user
|
||||
if (value.username) {
|
||||
// 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 && !value.name.match('\\(') && !value.name.match('\\)')) {
|
||||
value.name = value.name + ' (' + value.username + ')';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue