]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 Fix issue with display resource title or not
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:30:12 +0000 (15:30 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:46:23 +0000 (15:46 +0100)
=> Update the 'link_to_resource' helper

sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index 4903166626a3fbc2b9c1219a79f9adf3a0e10e6b..6bbf997ff62396d8d24863f9d1d7140b052ed95b 100644 (file)
@@ -271,7 +271,8 @@ module ApplicationHelper
       if options[:line]
         anchor= 'L' + options[:line].to_s
       end
-      link_to(name || resource.name, {:controller => 'resource', :action => 'index', :anchor => anchor, :id => resource.id, :period => period_index, :tab => options[:tab], :rule => options[:rule], :metric => options[:metric]}, :popup => ['resource', 'height=800,width=900,scrollbars=1,resizable=1'], :title => options[:title])
+      link_to(name || resource.name, {:controller => 'resource', :action => 'index', :anchor => anchor, :id => resource.id, :period => period_index, :tab => options[:tab], :rule => options[:rule], 
+                                      :metric => options[:metric], :display_title => true}, :popup => ['resource', 'height=800,width=900,scrollbars=1,resizable=1'], :title => options[:title])
     end
   end