]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3716 Do not filter quality profile name when renaming a profile
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 21 Sep 2012 13:39:27 +0000 (15:39 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 21 Sep 2012 13:40:47 +0000 (15:40 +0200)
=> When renaming a quality profile, special characters are displayed
   in HTML.

sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb

index f107558bf2332712cf04d2209061519606963ef5..87df20e4c2b404c00673ae67625b1d8cfe6ab507 100644 (file)
           <% if !(profile.provided?) %>
              <% form_tag(:action => 'rename', :id => profile.id) do -%>
               <%= hidden_field_tag 'rename_' + profile.id.to_s %>
-              <input type="button" name="button_rename" id="rename_<%= u profile.key %>" value="<%= message('rename') -%>" onClick='var name=prompt("<%= message('quality_profiles.new_name') -%>", "<%= u(profile.name) -%>"); if (name!=null) {$("rename_<%= profile.id %>").value=name; submit();} else {return false;}'>
+              <input type="button" name="button_rename" id="rename_<%= u profile.key %>" value="<%= message('rename') -%>" onClick='var name=prompt("<%= message('quality_profiles.new_name') -%>", "<%= profile.name -%>"); if (name!=null) {$("rename_<%= profile.id %>").value=name; submit();} else {return false;}'>
             <% end
             end %>
         </td>