From 0ceb6977631af9a3de12541444bf9b347eb5b0f1 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 28 Jan 2015 16:51:25 +0100 Subject: [PATCH] SONAR-6088 One missing reference to old preview mode --- .../webapp/WEB-INF/app/controllers/project_controller.rb | 8 -------- 1 file changed, 8 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 3f363903acd..ec55ef12904 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 @@ -230,7 +230,6 @@ 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]) - reportProjectModification(@project.id) flash[:notice] = message('project_history.snapshot_deleted') end @@ -313,7 +312,6 @@ class ProjectController < ApplicationController end flash[:notice] = message('project_history.version_created', :params => params[:version_name]) end - reportProjectModification(snapshot.root_project_id) end end @@ -344,8 +342,6 @@ class ProjectController < ApplicationController end end - reportProjectModification(parent_snapshot.root_project_id) - flash[:notice] = message('project_history.version_removed', :params => old_version_name) redirect_to :action => 'history', :id => parent_snapshot.root_project_id end @@ -441,8 +437,4 @@ class ProjectController < ApplicationController redirect_to home_path end - def reportProjectModification(project_id) - Property.set(Java::OrgSonarCorePreview::PreviewCache::SONAR_PREVIEW_CACHE_LAST_UPDATE_KEY, java.lang.System.currentTimeMillis, project_id) - end - end -- 2.39.5