]> source.dussan.org Git - sonarqube.git/commitdiff
Remove tab option from link_to_resource as it's not managed
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 28 Aug 2014 09:54:30 +0000 (11:54 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 28 Aug 2014 12:06:44 +0000 (14:06 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index 729770093977dc084ab0acb26d75a0167af4c83f..41c825e07aa4cb2ddc779e554b36162f22ed1e93 100644 (file)
@@ -318,7 +318,6 @@ module ApplicationHelper
         query = request.query_parameters
         query[:id] = resource.id
         query[:period] = period_index if period_index
-        query[:tab] = options[:tab] if options[:tab]
         query[:rule] = options[:rule] if options[:rule]
         query.each do |key, value|
           path += '&' unless path.empty?
@@ -332,7 +331,6 @@ module ApplicationHelper
         query = request.query_parameters
         query[:id] = resource.id
         query[:period] = period_index if period_index
-        query[:tab] = options[:tab] if options[:tab]
         query[:rule] = options[:rule] if options[:rule]
         query.each do |key, value|
           path += '&' unless path.empty?
@@ -343,7 +341,6 @@ module ApplicationHelper
     else
       url = "#{ApplicationController.root_context}/dashboard/index?id=#{u resource.key}"
       url += "&period=#{u period_index}" if period_index
-      url += "&tab=#{u options[:tab]}" if options[:tab]
       url += "&rule=#{u options[:rule]}" if options[:rule]
       url += "&metric=#{u options[:metric]}" if options[:metric]
       url += '#L' + options[:line].to_s if options[:line]