diff options
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_select_group.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_select_group.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_select_group.html.erb index bbc66378887..e55c18626fd 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_select_group.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/users/_select_group.html.erb @@ -14,7 +14,13 @@ var selectList = new SelectList({ el: '#select-list-user', width: '100%', - format: function (item) { return item.name + ' <div class="subtitle">' + item.description + '</div>'; }, + format: function (item) { + var label = item.name; + if (item.description) { + label += ' <div class="subtitle">' + item.description + '</div>' + } + return label; + }, searchUrl: baseUrl + '/user_groups/search?user=<%= @user.login -%>', selectUrl: baseUrl + '/groups/add_member', deselectUrl: baseUrl + '/groups/remove_member', |