From: Julien Lancelot Date: Thu, 28 Aug 2014 09:54:30 +0000 (+0200) Subject: Remove tab option from link_to_resource as it's not managed X-Git-Tag: 4.5-RC1~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6a0ac843d379512fff46f283289f3f343d3db52;p=sonarqube.git Remove tab option from link_to_resource as it's not managed --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index 72977009397..41c825e07aa 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -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]