aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb2
1 files changed, 1 insertions, 1 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 e3f7403bb75..b33e5c9ecd6 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
@@ -55,7 +55,7 @@ class DashboardController < ApplicationController
# display the layout of the parent without the sidebar, usually the directory, but display the file viewers
@hide_sidebar = true
@file = @resource
- @project = @snapshot.parent.project
+ @project = @resource.root_project
@metric=params[:metric]
render :action => 'no_dashboard'
end