aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-09-28 15:25:35 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-02 15:12:06 +0200
commit8f9cf4f2994f90fa69c2dd4f2b49a81ae98a6a25 (patch)
tree943d96c1ea988c088293fd7c11f4ddbadc9c255a /server/sonar-web
parentb33f90019d9a122b6e8bbbe66a0c9c018b9f00ec (diff)
downloadsonarqube-8f9cf4f2994f90fa69c2dd4f2b49a81ae98a6a25.tar.gz
sonarqube-8f9cf4f2994f90fa69c2dd4f2b49a81ae98a6a25.zip
SONAR-9786 Closed issues retain their line
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/helpers/issues.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts
index 34cef95d7c6..cce6a2adc49 100644
--- a/server/sonar-web/src/main/js/helpers/issues.ts
+++ b/server/sonar-web/src/main/js/helpers/issues.ts
@@ -107,8 +107,10 @@ function injectCommentsRelational(issue: RawIssue, users?: User[]) {
return { comments };
}
-function prepareClosed(issue: RawIssue): { flows?: undefined } {
- return issue.status === 'CLOSED' ? { flows: undefined } : {};
+function prepareClosed(issue: RawIssue) {
+ return issue.status === 'CLOSED'
+ ? { flows: undefined, line: undefined, textRange: undefined }
+ : {};
}
function ensureTextRange(issue: RawIssue): { textRange?: TextRange } {