]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4406 Rework design page
authorStas Vilchik <vilchiks@gmail.com>
Thu, 14 Aug 2014 07:49:14 +0000 (13:49 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 14 Aug 2014 07:49:14 +0000 (13:49 +0600)
Fix the sidebar

server/sonar-web/src/main/webapp/WEB-INF/app/controllers/design_controller.rb

index 5a873242d81863c9e149af115e14476b329f2c8c..19b9435cac7692c312d230134dd0b3010adf6b7b 100644 (file)
@@ -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