A free open source IT asset/license management system
Don't append username to the user's name if it's already there
Brady Wetherington02ca5248b106
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 5a6e9dd464..d3a0fddc14 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -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 + ')';}