From 61d46832513df5ab8a5671e9c01d4c053448a997 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 2 Jul 2014 15:29:03 +0600 Subject: [PATCH] SONAR-5209 Only closed issues should be displayed at the top --- .../main/coffee/component-viewer/mixins/main-issues.coffee | 4 ++-- sonar-server/src/main/coffee/component-viewer/source.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee index 8554bbd7964..2bee7384f30 100644 --- a/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee +++ b/sonar-server/src/main/coffee/component-viewer/mixins/main-issues.coffee @@ -65,7 +65,7 @@ define [ @sourceView.resetShowBlocks() issues.forEach (issue) => line = issue.line || 0 - if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED' + if issue.status == 'CLOSED' @sourceView.addShowBlock 0, 0, true else @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0 @@ -93,7 +93,7 @@ define [ issues.forEach (issue) => if predicate issue line = issue.line || 0 - if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED' + if issue.status == 'CLOSED' @sourceView.addShowBlock 0, 0, true else @sourceView.addShowBlock line - LINES_AROUND_ISSUE, line + LINES_AROUND_ISSUE, line == 0 diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index d0bad4a9182..7d47af82001 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -105,7 +105,7 @@ define [ rendered = 0 issues.forEach (issue) => line = issue.line || 0 - line = 0 if issue.resolution == 'FIXED' || issue.resolution == 'REMOVED' + line = 0 if issue.status == 'CLOSED' row = @$("##{@cid}-#{line}") unless row.length > 0 line = 0 -- 2.39.5