]> source.dussan.org Git - sonarqube.git/commitdiff
Fix display of rule tags
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 6 Feb 2014 17:49:18 +0000 (18:49 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 6 Feb 2014 17:49:18 +0000 (18:49 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_tags.html.erb

index 3a2358fa971f7da64b918084e3f6bf424f04fef8..9fc754da4710dfbf8b7f2e5ccbf104ae8bfa6966 100644 (file)
@@ -1,6 +1,6 @@
 <% #locals = rule -%>
 <% unless rule.systemTags.isEmpty && rule.adminTags.isEmpty %>
-  <% (rule.systemTags + rule.adminTags).each do |tag| %>
+  <% ([] + rule.systemTags + rule.adminTags).each do |tag| %>
   <span id="rule_tag_<%= rule.id -%>_<%= tag -%>">
     <%= link_to tag, url_for( params.merge({ 'tags[]' => tag, 'searchtext' => '' }) ) -%>
   </span>