aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
index 15523f43e32..a85983ebede 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
@@ -232,7 +232,7 @@ class ProjectController < ApplicationController
sid = params[:snapshot_id]
if sid
- Snapshot.update_all("status='U'", ["id=? or root_snapshot_id=(?)", sid.to_i, sid.to_i])
+ Snapshot.update_all("status='U'", ["id=?", sid.to_i])
flash[:notice] = message('project_history.snapshot_deleted')
end
@@ -313,7 +313,7 @@ class ProjectController < ApplicationController
end
end
- redirect_to :action => 'history', :id => snapshot.root_project.id
+ redirect_to :action => 'history', :id => snapshot.project.id
end
def delete_version
@@ -338,7 +338,7 @@ class ProjectController < ApplicationController
end
flash[:notice] = message('project_history.version_removed', :params => h(old_version_name))
- redirect_to :action => 'history', :id => parent_snapshot.root_project.id
+ redirect_to :action => 'history', :id => parent_snapshot.project.id
end
def create_event