diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-27 17:01:38 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-27 17:01:38 +0100 |
commit | a1e3f88e42dc1f0d6c294e0f10260223a3d31c0e (patch) | |
tree | 33fb6054275aaa807a358a568bc4ac050980a6cf /sonar-server | |
parent | 0a77863d625d55d3ae67f21aa6dce53903cd83d2 (diff) | |
download | sonarqube-a1e3f88e42dc1f0d6c294e0f10260223a3d31c0e.tar.gz sonarqube-a1e3f88e42dc1f0d6c294e0f10260223a3d31c0e.zip |
SONAR-3206 Can not delete snapshot from history
Fix regression introduced in Sonar 2.13
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb | 4 |
1 files 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 |