From efef547461ac486c9f7531204c7eceb95a16b7b9 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 14 Aug 2014 13:49:14 +0600 Subject: [PATCH] SONAR-4406 Rework design page Fix the sidebar --- .../main/webapp/WEB-INF/app/controllers/design_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/design_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/design_controller.rb index 5a873242d81..19b9435cac7 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/design_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/design_controller.rb @@ -31,7 +31,8 @@ class DesignController < ApplicationController def load_resource @resource=Project.by_key(params[:id]) - redirect_to(home_path) unless @resource + return redirect_to(home_path) unless @resource + @snapshot=@resource.last_snapshot end end -- 2.39.5