]> source.dussan.org Git - sonarqube.git/commitdiff
Do not feed RULE_FAILURES.PERMANENT_ID when rendering violations
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 26 Apr 2011 14:22:27 +0000 (16:22 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Tue, 26 Apr 2011 14:22:27 +0000 (16:22 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb

index 910a52c55949f0369ffac60c92550528acebd31f..8c3def0db689b38ef79b72ad76d615cc258b61b6 100644 (file)
@@ -213,11 +213,6 @@ class ResourceController < ApplicationController
       else
         @global_violations<<violation
       end
-      # if the permanent_id does not exist, set it to the current id
-      unless violation.permanent_id
-        violation.permanent_id = violation.id
-        violation.save
-      end
     end
 
     if !@expanded && @lines