]> source.dussan.org Git - sonarqube.git/commitdiff
Fix display of default profiles
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 16 Jul 2014 15:49:44 +0000 (17:49 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 16 Jul 2014 15:49:44 +0000 (17:49 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb

index ab14ed861ddca1a8d2dc04468f422eb3f6c66162..e8a77e22cd98952f77525cc036be3e710a2cca64 100644 (file)
@@ -52,7 +52,7 @@
     <tbody>
     <% @profiles.select { |p| p.language == language.getKey() }.each do |profile|
        projects_count = projects_count(profile)
-       is_default_profile = default_profile && default_profile==profile.key()
+       is_default_profile = default_profile && default_profile.key()==profile.key()
     %>
       <tr class="<%= cycle 'even', 'odd', :name => language.getKey() -%> hoverable" id="<%= u profile.key() %>">
         <td  width="40%">