]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5877 Fix bug with large duplications column
authorStas Vilchik <vilchiks@gmail.com>
Mon, 1 Dec 2014 16:01:38 +0000 (17:01 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 1 Dec 2014 16:01:43 +0000 (17:01 +0100)
server/sonar-web/src/main/js/source-viewer/viewer.js

index 48c319431120d8ce67418e6e9cd9b521b922a6e7..036f3042ea73955655e8017b52081e9adb69b3a3 100644 (file)
@@ -188,6 +188,7 @@ define([
             that.model.addDuplications(data.duplications);
             that.model.set({
               duplications: data.duplications,
+              duplicationsParsed: duplications,
               duplicationFiles: data.files
             });
           });
@@ -396,6 +397,8 @@ define([
               source: source,
               hasSourceBefore: data.sources.length === that.LINES_AROUND
             });
+            that.model.addDuplications(that.model.get('duplications'));
+            that.model.addMeta(that.model.get('duplicationsParsed'));
             that.render();
             that.scrollToLine(firstLine);
             if (that.model.get('hasSourceBefore') || that.model.get('hasSourceAfter')) {
@@ -421,6 +424,8 @@ define([
               source: source,
               hasSourceAfter: data.sources.length === that.LINES_AROUND
             });
+            that.model.addDuplications(that.model.get('duplications'));
+            that.model.addMeta(that.model.get('duplicationsParsed'));
             that.render();
             if (that.model.get('hasSourceBefore') || that.model.get('hasSourceAfter')) {
               that.bindScrollEvents();