diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-18 15:31:51 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-10-18 15:31:51 +0000 |
commit | 757c89eb7f40319189fe46f314cbd5e997ac1f83 (patch) | |
tree | f0014fa46107ba249c572c1175675ac9cb054509 | |
parent | 7877c79af7a38c21655b1ed07e226fce80d78969 (diff) | |
download | sonarqube-757c89eb7f40319189fe46f314cbd5e997ac1f83.tar.gz sonarqube-757c89eb7f40319189fe46f314cbd5e997ac1f83.zip |
VIEWS-43 Deleted projects are still displayed in view components
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb | 2 |
1 files changed, 1 insertions, 1 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 d51996029b5..ea8d5cfbad4 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 @@ -111,7 +111,7 @@ class ProjectController < ApplicationController @project = Project.by_key(params[:id]) if @project && is_admin?(@project) Snapshot.update_all(['islast=?', false], ['(root_project_id=? OR project_id=?) AND islast=?', @project.id, @project.id, true]) - Project.delete_all(['id=? OR root_id=?', @project.id, @project.id]) + Project.delete_all(['id=? OR root_id=? or copy_resource_id=?', @project.id, @project.id, @project.id]) end end redirect_to_default |