]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3206 Can not delete snapshot from history
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 27 Jan 2012 16:01:38 +0000 (17:01 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 27 Jan 2012 16:01:38 +0000 (17:01 +0100)
Fix regression introduced in Sonar 2.13

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

index 6e05bfd4be35172a9a65c81e8886c5092b24599d..f80168045303c7028b692dc223f5e05495a3f0a7 100644 (file)
@@ -63,7 +63,7 @@ class ProjectController < ApplicationController
   end
 
   def delete_snapshot_history
-    project=Project.by_key(params[:id])
+    @project=Project.by_key(params[:id])
     not_found("Project not found") unless @project
     access_denied unless is_admin?(@project)
 
@@ -73,7 +73,7 @@ class ProjectController < ApplicationController
       flash[:notice] = message('project_history.snapshot_deleted')
     end
 
-    redirect_to :action => 'history', :id => project.id
+    redirect_to :action => 'history', :id => @project.id
   end
 
   def links