diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-10 17:21:26 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-10 17:21:26 +0200 |
commit | 6c5fe6f83fcfbd2c5163abc0800aa88311364cb3 (patch) | |
tree | bfa18a1cc737b54e281bdc7a5c01356b7f6a9ea2 /server/sonar-web/src/main/webapp | |
parent | 8dc92a629b12deb5a04fe55f245434cbd41d5454 (diff) | |
download | sonarqube-6c5fe6f83fcfbd2c5163abc0800aa88311364cb3.tar.gz sonarqube-6c5fe6f83fcfbd2c5163abc0800aa88311364cb3.zip |
SONAR-6331 do not show overview for files
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb index 63b7a4c7636..bd71f5b95cf 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb @@ -27,9 +27,9 @@ class DashboardController < ApplicationController def index load_resource() - if @resource && !params[:did] + if @resource && @resource.display_dashboard? && !params[:did] overview_url = url_for({:controller => 'overview', :action => :index}) + '?id=' + url_encode(@resource.key) - redirect_to overview_url + return redirect_to overview_url end if !@resource || @resource.display_dashboard? redirect_if_bad_component() |