From a1e3f88e42dc1f0d6c294e0f10260223a3d31c0e Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 27 Jan 2012 17:01:38 +0100 Subject: [PATCH] SONAR-3206 Can not delete snapshot from history Fix regression introduced in Sonar 2.13 --- .../main/webapp/WEB-INF/app/controllers/project_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb index 6e05bfd4be3..f8016804530 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb @@ -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 -- 2.39.5