]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4676 do not insert changelog when issue is new
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 17 Sep 2013 07:39:58 +0000 (09:39 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 17 Sep 2013 07:39:58 +0000 (09:39 +0200)
sonar-core/src/main/java/org/sonar/core/issue/db/IssueStorage.java

index 5570c7118ce7cf8207b0a9e6822280bbb7310403..bd8f3bce7f59b5fb09da035f450b1c6b54144ed1 100644 (file)
@@ -142,7 +142,7 @@ public abstract class IssueStorage {
       }
     }
     FieldDiffs diffs = issue.currentChange();
-    if (diffs != null) {
+    if (!issue.isNew() && diffs != null) {
       IssueChangeDto changeDto = IssueChangeDto.of(issue.key(), diffs);
       mapper.insert(changeDto);
     }