]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6008 Fix display of My Profile page when user has no SCM account
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 6 Jan 2015 13:58:57 +0000 (14:58 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 6 Jan 2015 13:58:57 +0000 (14:58 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb

index 1fdc995856984e65cb6d867b0862db7379e1fa55..b781aeb2740a33e273e87c1caab5ba6aff7606a0 100644 (file)
@@ -29,7 +29,7 @@
       </tr>
       <tr>
         <td><b><%= message('my_profile.scm_accounts') -%>:</b></td>
-        <td id="groups"><%= current_user.scm_accounts.split(',').reject { |c| c.empty? }.join(', ') %></td>
+        <td id="groups"><%= current_user.scm_accounts.split(',').reject { |c| c.empty? }.join(', ') if current_user.scm_accounts %></td>
       </tr>
     </table>
   </div>