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:
snipe 2023-01-31 18:10:02 -08:00 committed by GitHub
commit 7a23398c0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 + ')';
}