From b8fdcad2f7be7e315ef5918d71990abf8eec52c9 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 25 Aug 2014 15:24:43 +0600 Subject: [PATCH] SONAR-4593 Display group description in User window Fix the issue with the empty group description --- .../webapp/WEB-INF/app/views/users/_select_group.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + '
' + item.description + '
'; }, + format: function (item) { + var label = item.name; + if (item.description) { + label += '
' + item.description + '
' + } + return label; + }, searchUrl: baseUrl + '/user_groups/search?user=<%= @user.login -%>', selectUrl: baseUrl + '/groups/add_member', deselectUrl: baseUrl + '/groups/remove_member', -- 2.39.5